pgsql: Tweak a couple of macros in the regex code to suppress compiler - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Tweak a couple of macros in the regex code to suppress compiler
Date
Msg-id 20100802022939.D1E937541D5@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/regex:
        regcomp.c (r1.48 -> r1.49)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/regex/regcomp.c?r1=1.48&r2=1.49)
        regexec.c (r1.28 -> r1.29)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/regex/regexec.c?r1=1.28&r2=1.29)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix an ancient typo that prevented the detection of conflicting
Next
From: rhaas@postgresql.org (Robert Haas)
Date:
Subject: pgsql: Remove ancient PL/pgsql line numbering hack.