From: Jarkko Hietaniemi Date: Mon, 14 Feb 2000 23:51:05 +0000 (+0000) Subject: silly compilers don't know that croak() exits X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b621ec8a698460b51809249a67bcb91975afb606;p=p5sagit%2Fp5-mst-13.2.git silly compilers don't know that croak() exits and complain about unitialized RETVALs p4raw-id: //depot/cfgperl@5087 --- diff --git a/ext/Sys/Syslog/Syslog.xs b/ext/Sys/Syslog/Syslog.xs index d227343..511df9f 100644 --- a/ext/Sys/Syslog/Syslog.xs +++ b/ext/Sys/Syslog/Syslog.xs @@ -551,6 +551,7 @@ _PATH_LOG() RETVAL = _PATH_LOG; #else croak("Your vendor has not defined the Sys::Syslog macro _PATH_LOG"); + RETVAL = NULL; #endif OUTPUT: RETVAL @@ -564,6 +565,7 @@ LOG_FAC(p) RETVAL = LOG_FAC(p); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_FAC"); + RETVAL = -1; #endif OUTPUT: RETVAL @@ -577,6 +579,7 @@ LOG_PRI(p) RETVAL = LOG_PRI(p); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_PRI"); + RETVAL = -1; #endif OUTPUT: RETVAL @@ -591,6 +594,7 @@ LOG_MAKEPRI(fac,pri) RETVAL = LOG_MAKEPRI(fac,pri); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_MAKEPRI"); + RETVAL = -1; #endif OUTPUT: RETVAL @@ -604,6 +608,7 @@ LOG_MASK(pri) RETVAL = LOG_MASK(pri); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_MASK"); + RETVAL = -1; #endif OUTPUT: RETVAL @@ -617,6 +622,7 @@ LOG_UPTO(pri) RETVAL = LOG_UPTO(pri); #else croak("Your vendor has not defined the Sys::Syslog macro LOG_UPTO"); + RETVAL = -1; #endif OUTPUT: RETVAL