]> granicus.if.org Git - postgresql/commit
Silence compiler warning in assertion-enabled builds.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 2 Jul 2013 14:23:42 +0000 (17:23 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 2 Jul 2013 14:51:50 +0000 (17:51 +0300)
commitc4f386f51d30d14e9a21888795c207a59fd693a0
treecd5023c0dd0a12cf9daf9b58992b362398cbd253
parent538ecfad3c6031b8efe0644b9082af91760cf448
Silence compiler warning in assertion-enabled builds.

With -Wtype-limits, gcc correctly points out that size_t can never be < 0.
Backpatch to 9.3 and 9.2. It's been like this forever, but in <= 9.1 you got
a lot other warnings with -Wtype-limits anyway (at least with my version of
gcc).

Andres Freund
src/pl/plpython/plpy_procedure.c