From: Rafael Garcia-Suarez Date: Thu, 29 Nov 2007 09:35:59 +0000 (+0000) Subject: Silence unused argument warnings when HAS_MSG isn't defined X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d51fa4dacb274a2a65ecfe4c7a2465ed828ee98;p=p5sagit%2Fp5-mst-13.2.git Silence unused argument warnings when HAS_MSG isn't defined p4raw-id: //depot/perl@32547 --- diff --git a/doio.c b/doio.c index fbd1910..5ccf73b 100644 --- a/doio.c +++ b/doio.c @@ -2131,6 +2131,8 @@ Perl_do_msgsnd(pTHX_ SV **mark, SV **sp) SETERRNO(0,0); return msgsnd(id, (struct msgbuf *)mbuf, msize, flags); #else + PERL_UNUSED_ARG(sp); + PERL_UNUSED_ARG(mark); Perl_croak(aTHX_ "msgsnd not implemented"); #endif } @@ -2168,6 +2170,8 @@ Perl_do_msgrcv(pTHX_ SV **mark, SV **sp) } return ret; #else + PERL_UNUSED_ARG(sp); + PERL_UNUSED_ARG(mark); Perl_croak(aTHX_ "msgrcv not implemented"); #endif }