Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita76c857

Browse files
committed
Add comment why seemingly dead code is necessary
1 parentc92be3c commita76c857

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎src/pl/plperl/plperl.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,15 @@ pp_require_safe(pTHX)
832832
RETPUSHYES;
833833

834834
DIE(aTHX_"Unable to load %s into plperl",name);
835-
returnNULL;/* keep compiler quiet */
835+
/*
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+
returnNULL;
836844
}
837845

838846

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp