From: David Webster Date: Thu, 21 Dec 2000 13:57:53 +0000 (+0000) Subject: ANSI 'C' fix (decs in "for" clauses no longer have any scope outside clause itself) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6d57cea923de12c2e1f44c783eaa0eff5a5430ad ANSI 'C' fix (decs in "for" clauses no longer have any scope outside clause itself) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/palette.cpp b/src/os2/palette.cpp index bf84af809f..8012364200 100644 --- a/src/os2/palette.cpp +++ b/src/os2/palette.cpp @@ -150,7 +150,8 @@ int wxPalette::GetPixel( // // Now loop through and find the matching entry // - for (int i = 0; i < ulNumEntries; i++) + int i; + for (i = 0; i < ulNumEntries; i++) { if (pualTable[i] == ulRGB) {