From 79a1d0451feb9c770b60225ec8bbac807ad3299a Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sun, 22 Feb 2009 17:44:11 -0700 Subject: [PATCH] fix GCC 4.2 -Os uninitialized variable warning in windows.cpp --- src/windows.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/windows.cpp b/src/windows.cpp index 21e87f16a8..08505d6f78 100644 --- a/src/windows.cpp +++ b/src/windows.cpp @@ -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);