summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-03-26 00:21:30 +0000
committerNicholas Clark <nick@ccl4.org>2005-03-26 00:21:30 +0000
commit3c8a6f8651424ba778d5280d96c18e950c4efb74 (patch)
treeb13518170163458b3f3e49c59bfd9d9aaebcde19 /mg.c
parentdd374669df59cc2457708a01ea0f6d332912530b (diff)
downloadperl-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mg.c b/mg.c
index dfa6fc3915..f7300e477a 100644
--- a/mg.c
+++ b/mg.c
@@ -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