]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppress dummy gcc warnings in regex library code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Apr 2010 12:52:31 +0000 (12:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Apr 2010 12:52:31 +0000 (12:52 +0000)
These warnings are harmless (variables are always initialized when they are
used) but they unfortunately prevent buildbot from reporting any new warnings
(which may not be harmless) during the library compilation step so suppress
them in the least intrusive way possible.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/regex/rege_dfa.c
src/regex/regexec.c

index 843c5d31b217f39109846283a6be606da15c1ca8..deac9125ae7ab6fc9ecc9cea4f9fbe9136bc7154 100644 (file)
@@ -569,7 +569,7 @@ chr *start;
        struct arcp ap;
        struct arcp lastap;
        color co;
-
+    lastap.ss = NULL; lastap.co = 0; // WX: suppress dummy gcc warnings
        ss = pickss(v, d, cp, start);
        assert(!(ss->flags&LOCKED));
 
index 41d49bdab53e75eff2522f238332b34ec610b8c5..42e7e18923b28fa479a816c106c1ec432fa29f6e 100644 (file)
@@ -360,7 +360,7 @@ struct colormap *cm;
                freedfa(s);
                return v->err;
        }
-
+    cold = NULL;// WX: fix gcc warnings about cold being possibly uninitialized
        ret = cfindloop(v, cnfa, cm, d, s, &cold);
 
        freedfa(d);