# HG changeset patch # User KUDr # Date 1172792068 0 # Node ID 43637acd46b565a1e544d2d1bf017aa3ede51a67 # Parent 0ad100a98853e3cd6a47b0ab64ed9dfe282752bf (svn r8963) [cpp_gui] -Fix: g++ 3.4.2 warning: 'w' might be used uninitialized in this function (glx) diff -r 0ad100a98853 -r 43637acd46b5 src/window.cpp --- a/src/window.cpp Thu Mar 01 22:48:46 2007 +0000 +++ b/src/window.cpp Thu Mar 01 23:34:28 2007 +0000 @@ -1401,7 +1401,7 @@ static void DecreaseWindowCounters(void) { - BaseWindow *w; + BaseWindow *w = NULL; REVERSED_FOR_ALL_WINDOWS(w) { // Unclick scrollbar buttons if they are pressed. if (w->flags4 & (WF_SCROLL_DOWN | WF_SCROLL_UP)) { @@ -1605,7 +1605,7 @@ if (!_scrolling_scrollbar) return true; // Find the scrolling window - BaseWindow *w; + BaseWindow *w = NULL; FOR_ALL_WINDOWS(w) { if (w->flags4 & WF_SCROLL_MIDDLE) { // Abort if no button is clicked any more.