diff options
author | Craig A. Berry <craigberry@mac.com> | 2013-03-02 20:07:51 -0600 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2013-03-03 15:54:10 -0600 |
commit | 7c522378939a6dbc8153d4af24954dc0f7909aeb (patch) | |
tree | 2d7f67735be55585316a7dc827f71350dc6f3a1c /doio.c | |
parent | 98ca8b423e7ba2fdcb24c91d0a5b0b529b6a04b9 (diff) | |
download | perl-7c522378939a6dbc8153d4af24954dc0f7909aeb.tar.gz |
Add return statements where missing in doio.c IPC functions.
These are code paths not seen on platforms that have msg* and
shm* functions, and of course we're croaking before returning
so returning is pointless, but the VMS C compiler insists that
we have return statments for non-void functions anyway, and
that compiler now sees these functions since enabling sem*.
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2155,6 +2155,7 @@ Perl_do_msgsnd(pTHX_ SV **mark, SV **sp) PERL_UNUSED_ARG(mark); /* diag_listed_as: msg%s not implemented */ Perl_croak(aTHX_ "msgsnd not implemented"); + return -1; #endif } @@ -2197,6 +2198,7 @@ Perl_do_msgrcv(pTHX_ SV **mark, SV **sp) PERL_UNUSED_ARG(mark); /* diag_listed_as: msg%s not implemented */ Perl_croak(aTHX_ "msgrcv not implemented"); + return -1; #endif } @@ -2313,6 +2315,7 @@ Perl_do_shmio(pTHX_ I32 optype, SV **mark, SV **sp) #else /* diag_listed_as: shm%s not implemented */ Perl_croak(aTHX_ "shm I/O not implemented"); + return -1; #endif } |