Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c92be3c commit a76c857Copy full SHA for a76c857
src/pl/plperl/plperl.c
@@ -832,7 +832,15 @@ pp_require_safe(pTHX)
832
RETPUSHYES;
833
834
DIE(aTHX_ "Unable to load %s into plperl", name);
835
- return NULL; /* keep compiler quiet */
+ /*
836
+ * In most Perl versions, DIE() expands to a return statement, so the next
837
+ * line is not necessary. But in versions between but not including 5.11.1
838
+ * and 5.13.3 it does not, so the next line is necessary to avoid a
839
+ * "control reaches end of non-void function" warning from gcc. Other
840
+ * compilers such as Solaris Studio will, however, issue a "statement not
841
+ * reached" warning instead.
842
+ */
843
+ return NULL;
844
}
845
846
0 commit comments