X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c1d8296a78d1f630952fc5395e4072c8a654b8ef..8a31648287be0ef976f133de2786b137f1e98340:/src/regex/regcomp.c diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index 4ad457ff95..83edc37b34 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -235,11 +235,11 @@ struct vars { #define ISERR() VISERR(v) #define VERR(vv,e) ((vv)->nexttype = EOS, ((vv)->err) ? (vv)->err :\ ((vv)->err = (e))) -#define ERR(e) VERR(v, e) /* record an error */ +#define ERR(e) (void)VERR(v, e) /* record an error */ #define NOERR() {if (ISERR()) return;} /* if error seen, return */ #define NOERRN() {if (ISERR()) return NULL;} /* NOERR with retval */ #define NOERRZ() {if (ISERR()) return 0;} /* NOERR with retval */ -#define INSIST(c, e) ((c) ? 0 : ERR(e)) /* if condition false, error */ +#define INSIST(c, e) (void)((c) ? (void)0 : ERR(e)) /* if condition false, error */ #define NOTE(b) (v->re->re_info |= (b)) /* note visible condition */ #define EMPTYARC(x, y) newarc(v->nfa, EMPTY, 0, x, y)