pgsql: Silence compiler warning in assertion-enabled builds.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Silence compiler warning in assertion-enabled builds.
Date: 2013-07-02 14:54:21
Message-ID: E1Uu1yH-0002Pe-4S@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d2e71ff7573e67fc0a263d0ba6fe2ffbc175d1ad

Modified Files
--------------
src/pl/plpython/plpy_procedure.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2013-07-02 14:56:24 Re: pgsql: Improve support for building PGXS modules with VPATH.
Previous Message Noah Misch 2013-07-02 14:33:38 Re: pgsql: Permit super-MaxAllocSize allocations with MemoryContextAllocHug