Permalink
Browse files

Squash warning about control reaching the end of a non-void function

  • Loading branch information...
1 parent ac08926 commit b4f9941304c95aeeb503661e705c9c5246e1c3da @leto committed Sep 17, 2010
Showing with 7 additions and 2 deletions.
  1. +7 −2 plparrot.c
View
@@ -580,9 +580,14 @@ plparrot_make_sausage(Parrot_Interp interp, Parrot_PMC pmc, FunctionCallInfo fci
return (Datum) 0;
} else if (PMC_ISA(pmc,"Parcel")) {
elog(ERROR, "CANNOT MAKE Parcel INTO SAUSAGE");
- } else {
- elog(ERROR,"CANNOT MAKE SAUSAGE");
}
+
+ elog(ERROR,"CANNOT MAKE SAUSAGE");
+ /*
+ Squash warnings about control reaching the end of a non-void function.
+ Not actually reachable.
+ */
+ return (Datum) 0;
}
void debug(char *msg) {

0 comments on commit b4f9941

Please sign in to comment.