diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-07-02 17:23:42 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-07-02 17:51:32 +0300 |
commit | ae8fc624066398b8a14a97c5f950ddc844657d24 (patch) | |
tree | d62b2cf143a35e5c4e3aa346d130ba5356ff1fc7 | |
parent | 4d6ae6aaec5744f734735b9ab8acf29a4e97f151 (diff) |
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
-rw-r--r-- | src/pl/plpython/plpy_procedure.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpython/plpy_procedure.c b/src/pl/plpython/plpy_procedure.c index 5007e7770ff..d278d6e7058 100644 --- a/src/pl/plpython/plpy_procedure.c +++ b/src/pl/plpython/plpy_procedure.c @@ -494,8 +494,8 @@ PLy_procedure_munge_source(const char *name, const char *src) char *mrc, *mp; const char *sp; - size_t mlen, - plen; + size_t mlen; + int plen; /* * room for function source and the def statement |