From 3eb7a270958f33590c9472fe5d25fcf49f82b324 Mon Sep 17 00:00:00 2001
From: Haru <haru@dotalux.com>
Date: Sat, 20 Feb 2016 16:21:36 +0100
Subject: Fixed compile warnings in clang

- Fixed a -Wshorten-64-to-32 warning in case there's no thread-local-storage available
- Disabled -Wcast-align for the time being

Signed-off-by: Haru <haru@dotalux.com>
---
 src/common/thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/common')

diff --git a/src/common/thread.c b/src/common/thread.c
index 6012791e2..b724344e6 100644
--- a/src/common/thread.c
+++ b/src/common/thread.c
@@ -263,7 +263,7 @@ int rathread_get_tid(void) {
 	#ifdef WIN32
 		return (int)GetCurrentThreadId();
 	#else
-		return (intptr_t)pthread_self();
+		return (int)pthread_self();
 	#endif
 #endif
 
-- 
cgit v1.2.3-70-g09d2