summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-05-31 11:53:20 +0000
committerNicholas Clark <nick@ccl4.org>2008-05-31 11:53:20 +0000
commit19c4478c878cb3732a73314cc162df7f808d5d78 (patch)
treea2d26c9af057a09c0b0e93b6570119e0233ae75f
parent8ba22ff48d546c5622ef74aee96415810fcbf7a0 (diff)
downloadperl-19c4478c878cb3732a73314cc162df7f808d5d78.tar.gz
Add conditional code to initialise RETVAL, to avoid compiler warnings.
(There was never an error, as croak() was called before the return). p4raw-id: //depot/perl@33956
-rw-r--r--ext/POSIX/POSIX.xs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index b7cdc34cd4..238d7977ce 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -656,6 +656,11 @@ WEXITSTATUS(status)
POSIX::WSTOPSIG = 4
POSIX::WTERMSIG = 5
CODE:
+#if !(defined(WEXITSTATUS) || defined(WIFEXITED) || defined(WIFSIGNALED) \
+ || defined(WIFSTOPPED) || defined(WSTOPSIG) || defined (WTERMSIG))
+ RETVAL = 0; /* Silence compilers that notice this, but don't realise
+ that not_here() can't return. */
+#endif
switch(ix) {
case 0:
#ifdef WEXITSTATUS