diff options
author | Haru <haru@dotalux.com> | 2016-02-20 16:21:36 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-20 16:21:36 +0100 |
commit | 3eb7a270958f33590c9472fe5d25fcf49f82b324 (patch) | |
tree | 8b02dd83f919a85d61f448c736bb4a1befe48633 /src | |
parent | 8aa074958fc2162553055c4083f7696dab12161f (diff) | |
download | hercules-3eb7a270958f33590c9472fe5d25fcf49f82b324.tar.gz hercules-3eb7a270958f33590c9472fe5d25fcf49f82b324.tar.bz2 hercules-3eb7a270958f33590c9472fe5d25fcf49f82b324.tar.xz hercules-3eb7a270958f33590c9472fe5d25fcf49f82b324.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/common/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |