fix GCC 4.2 -Os uninitialized variable warning in windows.cpp

This commit is contained in:
Joel Dice 2009-02-22 17:44:11 -07:00
parent 8add9db0b2
commit 79a1d0451f

View File

@ -238,9 +238,11 @@ class MySystem: public System {
assert(s, t);
if (owner_ == t) {
bool interrupted;
bool notified;
unsigned depth;
// Initialized here to make gcc 4.2 a happy compiler
bool interrupted = false;
bool notified = false;
unsigned depth = 0;
int r UNUSED;
{ ACQUIRE(s, t->mutex);