projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e262725
)
Suppress "control reaches end of non-void function" warning from gcc 4.5.
author
Tom Lane
Sat, 22 Jan 2011 23:01:31 +0000
(18:01 -0500)
committer
Tom Lane
Sat, 22 Jan 2011 23:01:31 +0000
(18:01 -0500)
Not sure why I'm seeing this on Fedora 14 and not earlier versions.
Seems like a regression that gcc no longer knows that DIE() doesn't return.
Still, adding a dummy return is harmless enough.
src/pl/plperl/plperl.c
patch
|
blob
|
blame
|
history
diff --git
a/src/pl/plperl/plperl.c
b/src/pl/plperl/plperl.c
index 5595baaed5fc04e0c897dca12e92d2a7e3c829ac..e10560330374863d2b84669dab31f6513ad9f516 100644
(file)
--- a/
src/pl/plperl/plperl.c
+++ b/
src/pl/plperl/plperl.c
@@
-774,6
+774,7
@@
pp_require_safe(pTHX)
RETPUSHYES;
DIE(aTHX_ "Unable to load %s into plperl", name);
+ return NULL; /* keep compiler quiet */
}