From: Vadim Zeitlin Date: Mon, 7 Jul 2003 11:48:42 +0000 (+0000) Subject: warning (in Unicode only) fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a400a8230f751da518c29bd9a1c67132a4ae2b75 warning (in Unicode only) fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index b2ee62e732..6b2a005483 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -1009,7 +1009,8 @@ int WXDLLEXPORT wxStricmp(const wxChar *psz1, const wxChar *psz2) #ifndef wxStricmp int WXDLLEXPORT wxStrnicmp(const wxChar *s1, const wxChar *s2, size_t n) { - register wxChar c1, c2; + // initialize the variables just to suppress stupid gcc warning + register wxChar c1 = 0, c2 = 0; while (n && ((c1 = wxTolower(*s1)) == (c2 = wxTolower(*s2)) ) && c1) n--, s1++, s2++; if (n) { if (c1 < c2) return -1;