X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fthreads%2Fthreads.h;fp=src%2Flib%2Fplatform%2Fthreads%2Fthreads.h;h=1f62dcf0c1247511b24d6d7830416699a3a4c5d0;hb=cc938f166e50b0c9e4fdccf55e0a8cffb2c56602;hp=ead0ebdcb18c5e53525f60bb1882cdf9f12fabe6;hpb=679dfa075ef915793de454b2f803ce8fe09d30b4;p=deb_libcec.git diff --git a/src/lib/platform/threads/threads.h b/src/lib/platform/threads/threads.h index ead0ebd..1f62dcf 100644 --- a/src/lib/platform/threads/threads.h +++ b/src/lib/platform/threads/threads.h @@ -47,12 +47,9 @@ namespace PLATFORM virtual ~CThread(void) { StopThread(0); - void *retVal; + void *retVal = NULL; if (m_thread) ThreadsWait(m_thread, &retVal); - #if defined(__WINDOWS__) - (void *)retVal; //"unreferenced local variable" warning - #endif } static void *ThreadHandler(CThread *thread)