summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2013-03-02 20:07:51 -0600
committerCraig A. Berry <craigberry@mac.com>2013-03-03 15:54:10 -0600
commit7c522378939a6dbc8153d4af24954dc0f7909aeb (patch)
tree2d7f67735be55585316a7dc827f71350dc6f3a1c /doio.c
parent98ca8b423e7ba2fdcb24c91d0a5b0b529b6a04b9 (diff)
downloadperl-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/doio.c b/doio.c
index 795d13857f..4e8d48aa40 100644
--- a/doio.c
+++ b/doio.c
@@ -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
}