Silence unused argument warnings when HAS_MSG isn't defined
Rafael Garcia-Suarez [Thu, 29 Nov 2007 09:35:59 +0000 (09:35 +0000)]
p4raw-id: //depot/perl@32547

doio.c

diff --git a/doio.c b/doio.c
index fbd1910..5ccf73b 100644 (file)
--- 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
 }