Content-Length: 261281 | pFad | http://github.com/postgrespro/postgres/commit/d2e71ff7573e67fc0a263d0ba6fe2ffbc175d1ad

36 Silence compiler warning in assertion-enabled builds. · postgrespro/postgres@d2e71ff · GitHub
Skip to content

Commit d2e71ff

Browse files
committed
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
1 parent cce5d85 commit d2e71ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pl/plpython/plpy_procedure.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,8 @@ PLy_procedure_munge_source(const char *name, const char *src)
494494
char *mrc,
495495
*mp;
496496
const char *sp;
497-
size_t mlen,
498-
plen;
497+
size_t mlen;
498+
int plen;
499499

500500
/*
501501
* room for function source and the def statement

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/d2e71ff7573e67fc0a263d0ba6fe2ffbc175d1ad

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy