From: Jerry D. Hedden Date: Fri, 13 Nov 2009 13:59:20 +0000 (-0500) Subject: Fix compiler warnings: X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=07822e36092e080b01d96c8587e0cd6b19cb9257;p=p5sagit%2Fp5-mst-13.2.git Fix compiler warnings: pp_sys.c: In function `Perl_pp_tie': pp_sys.c:788: warning: 'gv' might be used uninitialized in this function pp_sys.c: In function `Perl_pp_dbmopen': pp_sys.c:936: warning: 'gv' might be used uninitialized in this function pp_sys.c: In function `Perl_pp_enterwrite': pp_sys.c:1274: warning: 'cv' might be used uninitialized in this function pp_sys.c: In function `Perl_pp_ghostent': pp_sys.c:4711: warning: 'hent' might be used uninitialized in this function --- diff --git a/pp_sys.c b/pp_sys.c index bea4b7d..8b5fccb 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -785,7 +785,7 @@ PP(pp_tie) { dVAR; dSP; dMARK; HV* stash; - GV *gv; + GV *gv = NULL; SV *sv; const I32 markoff = MARK - PL_stack_base; const char *methname; @@ -933,7 +933,7 @@ PP(pp_dbmopen) dVAR; dSP; dPOPPOPssrl; HV* stash; - GV *gv; + GV *gv = NULL; HV * const hv = MUTABLE_HV(POPs); SV * const sv = newSVpvs_flags("AnyDBM_File", SVs_TEMP); @@ -1271,8 +1271,8 @@ PP(pp_enterwrite) register GV *gv; register IO *io; GV *fgv; - CV *cv; - SV * tmpsv = NULL; + CV *cv = NULL; + SV *tmpsv = NULL; if (MAXARG == 0) gv = PL_defoutgv; @@ -4708,7 +4708,7 @@ PP(pp_ghostent) struct hostent *gethostbyname(Netdb_name_t); struct hostent *gethostent(void); #endif - struct hostent *hent; + struct hostent *hent = NULL; unsigned long len; EXTEND(SP, 10);