diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-03-26 00:21:30 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-03-26 00:21:30 +0000 |
commit | 3c8a6f8651424ba778d5280d96c18e950c4efb74 (patch) | |
tree | b13518170163458b3f3e49c59bfd9d9aaebcde19 /mg.c | |
parent | dd374669df59cc2457708a01ea0f6d332912530b (diff) | |
download | perl-3c8a6f8651424ba778d5280d96c18e950c4efb74.tar.gz |
Need to return something when the compiler doesn't know that a
function is "noreturn".
p4raw-id: //depot/perl@24082
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -478,6 +478,11 @@ Perl_magic_regdatum_set(pTHX_ SV *sv, MAGIC *mg) (void)sv; (void)mg; Perl_croak(aTHX_ PL_no_modify); /* NOT REACHED */ +#ifndef HASATTRIBUTE + /* No __attribute__, so the compiler doesn't know that croak never returns + */ + return 0; +#endif } U32 |