]> granicus.if.org Git - postgresql/commit
Tweak a couple of macros in the regex code to suppress compiler warnings
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Aug 2010 02:29:39 +0000 (02:29 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Aug 2010 02:29:39 +0000 (02:29 +0000)
commite621037eec4a1c9ec2d7056c9c1c11b9b03932cb
tree79d1b68b7221885f13b23f4739cbe5a149d2239d
parentfbcf2cfb53513b9ade1c897e088aeb27252c43d7
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.
src/backend/regex/regcomp.c
src/backend/regex/regexec.c