Tweak a couple of macros in the regex code to suppress compiler warnings

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e621037eec4a1c9ec2d7056c9c1c11b9b03932cb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-08-02T02:29:39Z
Releases: 9.1.0
Tweak a couple of macros in the regex code to suppress compiler warnings
from "clang".  The VERR changes make an assignment unconditional, which is
probably easier to read/understand anyway, and one can hardly argue that
it's worth shaving cycles off the case of reporting another error when
one has already been detected.  The INSIST change limits where that macro
can be used, but not in a way that creates a problem for any existing call.

Files

PathChange+/−
src/backend/regex/regcomp.c modified +4 −4
src/backend/regex/regexec.c modified +2 −2