]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wxchar.cpp
warnings fixes
[wxWidgets.git] / src / common / wxchar.cpp
index b2ee62e7322fdd1b4573b5e80864076de4e86b5a..6b2a005483c7cd0af6cc137d6627d79212cf19b1 100644 (file)
@@ -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;