summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mg.c b/mg.c
index d31c39a829..359b8ca994 100644
--- a/mg.c
+++ b/mg.c
@@ -469,9 +469,9 @@ 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
- */
+#ifndef HASATTRIBUTE_NORETURN
+ /* No __attribute__((noreturn)), so the compiler doesn't know that
+ * croak never returns. */
return 0;
#endif
}