aboutsummaryrefslogtreecommitdiff
path: root/src/threading
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-11-08 16:19:34 -0500
committerkwolekr <kwolekr@minetest.net>2015-11-08 16:34:56 -0500
commit6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9 (patch)
tree4778a7790b68dbdc5546f70bf5f12d664fb883f8 /src/threading
parentad5ac39d8d1a8b8f6f0fe077e20bac914ddc624b (diff)
downloadminetest-6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9.tar.gz
minetest-6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9.tar.bz2
minetest-6f95bb1ef371c5e838f0df4d6e3edd9d6b132bf9.zip
Fix misc. MinGW and Valgrind warnings
Diffstat (limited to 'src/threading')
-rw-r--r--src/threading/thread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/threading/thread.cpp b/src/threading/thread.cpp
index 57b551503..8688c4cbf 100644
--- a/src/threading/thread.cpp
+++ b/src/threading/thread.cpp
@@ -264,7 +264,8 @@ DWORD WINAPI Thread::threadProc(LPVOID param)
thr->m_running = false;
g_logger.deregisterThread();
- return NULL;
+ // 0 is returned here to avoid an unnecessary ifdef clause
+ return 0;
}