win32: fixed "unreferenced local variable" warning
[deb_libcec.git] / src / lib / platform / threads / threads.h
index 97774b3b1ee28289952bf8af4321d891398925e8..b5ccf3850815845b1d37e458ab163fcd78e62f93 100644 (file)
@@ -46,6 +46,9 @@ namespace PLATFORM
     virtual ~CThread(void)
     {
       StopThread(0);
+      void *retVal;
+      ThreadsWait(m_thread, &retVal);
+      (void *)retVal; //"unreferenced local variable" warning
     }
 
     static void *ThreadHandler(CThread *thread)