From: Marcus Holland-Moritz Date: Sun, 23 Apr 2006 04:47:04 +0000 (+0200) Subject: Cleanup some gcc warnings X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b3f24c00097febc1ee3ecdb31ce34c3df610cbd2;p=p5sagit%2Fp5-mst-13.2.git Cleanup some gcc warnings Third and fourth patches from: Subject: Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2 Message-ID: <20060423044704.6a383ee8@r2d2> p4raw-id: //depot/perl@27946 --- diff --git a/mg.c b/mg.c index d7105b5..30545fc 100644 --- a/mg.c +++ b/mg.c @@ -2890,6 +2890,8 @@ Perl_magic_clearhint(pTHX_ SV *sv, MAGIC *mg) dVAR; assert(mg->mg_len == HEf_SVKEY); + PERL_UNUSED_ARG(sv); + PL_hints |= HINT_LOCALIZE_HH; PL_compiling.cop_hints = Perl_refcounted_he_new(aTHX_ PL_compiling.cop_hints, diff --git a/perl.h b/perl.h index 5145e10..9c4636c 100644 --- a/perl.h +++ b/perl.h @@ -845,7 +845,7 @@ int usleep(unsigned int); # include "embed.h" # ifndef PERL_MAD # undef op_getmad -# define op_getmad(arg,pegop,slot) /*EMPTY*/ +# define op_getmad(arg,pegop,slot) NOOP # endif #endif @@ -2334,7 +2334,7 @@ typedef struct clone_params CLONE_PARAMS; # include "embed.h" # ifndef PERL_MAD # undef op_getmad -# define op_getmad(arg,pegop,slot) /*EMPTY*/ +# define op_getmad(arg,pegop,slot) NOOP # endif # define ISHISH "vms" #endif @@ -2368,7 +2368,7 @@ typedef struct clone_params CLONE_PARAMS; # include "embed.h" # ifndef PERL_MAD # undef op_getmad -# define op_getmad(arg,pegop,slot) /*EMPTY*/ +# define op_getmad(arg,pegop,slot) NOOP # endif # define ISHISH "symbian" #endif @@ -4371,7 +4371,7 @@ END_EXTERN_C # include "embed.h" # ifndef PERL_MAD # undef op_getmad -# define op_getmad(arg,pegop,slot) /*EMPTY*/ +# define op_getmad(arg,pegop,slot) NOOP # endif #endif diff --git a/toke.c b/toke.c index cd07c81..18072dd 100644 --- a/toke.c +++ b/toke.c @@ -1194,8 +1194,8 @@ S_curmad(pTHX_ char slot, SV *sv) addmad(newMADsv(slot, sv), where, 0); } #else -# define start_force(where) /*EMPTY*/ -# define curmad(slot, sv) /*EMPTY*/ +# define start_force(where) NOOP +# define curmad(slot, sv) NOOP #endif /*