repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
posix: don't segfault when calling ThreadsWait() without a valid thread
[deb_libcec.git]
/
src
/
lib
/
platform
/
threads
/
threads.h
diff --git
a/src/lib/platform/threads/threads.h
b/src/lib/platform/threads/threads.h
index 97774b3b1ee28289952bf8af4321d891398925e8..b5ccf3850815845b1d37e458ab163fcd78e62f93 100644
(file)
--- a/
src/lib/platform/threads/threads.h
+++ b/
src/lib/platform/threads/threads.h
@@
-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)