]> granicus.if.org Git - postgresql/commit
Tweak PQresStatus() to avoid a clang compiler warning.
authorRobert Haas <rhaas@postgresql.org>
Fri, 5 Aug 2011 16:06:29 +0000 (12:06 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 5 Aug 2011 16:06:29 +0000 (12:06 -0400)
commitb43bf617fdb3ecde709892c3bd8997ac41410f2f
treefe0269bc692a3511249a22cbb1d956f1e31c1c25
parent4262e61d6424a38150f125b612fd900267718148
Tweak PQresStatus() to avoid a clang compiler warning.

The previous test for status < 0 test is in fact testing nothing if the
compiler considers an enum to be an unsigned data type.  clang doesn't
like tautologies, so do this instead.

Report by Peter Geoghegan, fix as suggested by Tom Lane.
src/interfaces/libpq/fe-exec.c