From: Nicholas Clark Date: Sat, 31 May 2008 11:53:20 +0000 (+0000) Subject: Add conditional code to initialise RETVAL, to avoid compiler warnings. X-Git-Tag: accepted/trunk/20130322.191538~13067 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19c4478c878cb3732a73314cc162df7f808d5d78;p=platform%2Fupstream%2Fperl.git 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 --- diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index b7cdc34..238d797 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