git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 4262e61) | patch
Tweak PQresStatus() to avoid a clang compiler warning.
Fri, 5 Aug 2011 16:06:29 +0000 (12:06 -0400)
Fri, 5 Aug 2011 16:06:29 +0000 (12:06 -0400)
commit b43bf617fdb3ecde709892c3bd8997ac41410f2f
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 diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /