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."
This commit is contained in:
parent
33cdeec757
commit
e89deb0f79
@ -44,9 +44,9 @@ public:
|
|||||||
|
|
||||||
Win32ConditionPrivateData ()
|
Win32ConditionPrivateData ()
|
||||||
:waiters_(0),
|
:waiters_(0),
|
||||||
was_broadcast_(0),
|
|
||||||
sema_(CreateSemaphore(NULL,0,0x7fffffff,NULL)),
|
sema_(CreateSemaphore(NULL,0,0x7fffffff,NULL)),
|
||||||
waiters_done_(CreateEvent(NULL,FALSE,FALSE,NULL))
|
waiters_done_(CreateEvent(NULL,FALSE,FALSE,NULL)),
|
||||||
|
was_broadcast_(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user