Author: jonathan
Date: Tue Nov 11 08:29:33 2008
New Revision: 32545
Modified:
trunk/languages/perl6/src/pmc/perl6multisub.pmc
Log:
[rakudo] Make C compiler shut up with its warnings. Spotted by masak++.
Modified: trunk/languages/perl6/src/pmc/perl6multisub.pmc
==============================================================================
--- trunk/languages/perl6/src/pmc/perl6multisub.pmc (original)
+++ trunk/languages/perl6/src/pmc/perl6multisub.pmc Tue Nov 11 08:29:33 2008
@@ -511,12 +511,18 @@
else if (possibles_count == 0) {
Parrot_ex_throw_from_c_args(interp, next, 1,
"No applicable candidates found to dispatch to.");
+ return NULL;
}
else {
Parrot_ex_throw_from_c_args(interp, next, 1,
"Ambiguous dispatch.");
+ return NULL;
}
}
+ else {
+ /* XXX TODO: Build PMC array of all possibles. */
+ return PMCNULL;
+ }
}
/*