From e89deb0f797bd4db77491566ad9d323e57377063 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 23 Mar 2009 16:28:48 +0000 Subject: [PATCH] From Csaba Halasz, "IIRC the C++ standard says members will be initialized in declaration order, and not in the order they are listed in the constructor. To avoid possible trouble, gcc warns about this. Attached modification fixes the initializer order to silence this warning." --- src/OpenThreads/win32/Win32ConditionPrivateData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenThreads/win32/Win32ConditionPrivateData.h b/src/OpenThreads/win32/Win32ConditionPrivateData.h index c4a2f9e88..163efbec4 100644 --- a/src/OpenThreads/win32/Win32ConditionPrivateData.h +++ b/src/OpenThreads/win32/Win32ConditionPrivateData.h @@ -44,9 +44,9 @@ public: Win32ConditionPrivateData () :waiters_(0), - was_broadcast_(0), sema_(CreateSemaphore(NULL,0,0x7fffffff,NULL)), - waiters_done_(CreateEvent(NULL,FALSE,FALSE,NULL)) + waiters_done_(CreateEvent(NULL,FALSE,FALSE,NULL)), + was_broadcast_(0) { }