projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
538ecfa
)
Silence compiler warning in assertion-enabled builds.
author
Heikki Linnakangas
Tue, 2 Jul 2013 14:23:42 +0000
(17:23 +0300)
committer
Heikki Linnakangas
Tue, 2 Jul 2013 14:51:50 +0000
(17:51 +0300)
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
patch
|
blob
|
blame
|
history
diff --git
a/src/pl/plpython/plpy_procedure.c
b/src/pl/plpython/plpy_procedure.c
index 3083451595fa5b8110764437ab94d99424e9e68c..6678d02b5956079b7e54fe2f947696163ca3c282 100644
(file)
--- a/
src/pl/plpython/plpy_procedure.c
+++ b/
src/pl/plpython/plpy_procedure.c
@@
-493,8
+493,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