]> 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:53:08 +0000 (17:53 +0300)
commitd2e71ff7573e67fc0a263d0ba6fe2ffbc175d1ad
treea23c2d4f14ff00a2d245e58dbafe68f8cd4f29e6
parentcce5d851ed773dd01bfb0ba3e653636fb8f40f32
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