diff options
author | kwolekr <kwolekr@minetest.net> | 2015-01-18 23:29:19 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-01-18 23:29:19 -0500 |
commit | 38bd9e93a252cb2dd5ace6b0132514edff38b504 (patch) | |
tree | 07a891ba1f709cdb1651e7169a0e0a7f80425552 /src/jthread/pthread | |
parent | e36681101efdfec3ed9cf9d70f7c5296c4124cd6 (diff) | |
download | minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.tar.gz minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.tar.bz2 minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.zip |
Fix all warnings and remove -Wno-unused-but-set cflag
Diffstat (limited to 'src/jthread/pthread')
-rw-r--r-- | src/jthread/pthread/jthread.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/jthread/pthread/jthread.cpp b/src/jthread/pthread/jthread.cpp index e90c03456..414d8fde5 100644 --- a/src/jthread/pthread/jthread.cpp +++ b/src/jthread/pthread/jthread.cpp @@ -146,10 +146,7 @@ bool JThread::IsSameThread() void *JThread::TheThread(void *param) { - JThread *jthread; - void *ret; - - jthread = (JThread *)param; + JThread *jthread = (JThread *)param; jthread->continuemutex2.Lock(); jthread->running = true; @@ -157,7 +154,7 @@ void *JThread::TheThread(void *param) jthread->continuemutex.Lock(); jthread->continuemutex.Unlock(); - ret = jthread->Thread(); + jthread->Thread(); jthread->running = false; |