From: Vadim Zeitlin Date: Wed, 7 Apr 2010 12:52:31 +0000 (+0000) Subject: Suppress dummy gcc warnings in regex library code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ceed155e8a53c121519e7725be7d1abf642dd56e Suppress dummy gcc warnings in regex library code. 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 --- diff --git a/src/regex/rege_dfa.c b/src/regex/rege_dfa.c index 843c5d31b2..deac9125ae 100644 --- a/src/regex/rege_dfa.c +++ b/src/regex/rege_dfa.c @@ -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)); diff --git a/src/regex/regexec.c b/src/regex/regexec.c index 41d49bdab5..42e7e18923 100644 --- a/src/regex/regexec.c +++ b/src/regex/regexec.c @@ -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);