summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--warnings.h2
-rw-r--r--warnings.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/warnings.h b/warnings.h
index c8cd9a5a51..5364a519c5 100644
--- a/warnings.h
+++ b/warnings.h
@@ -25,7 +25,7 @@
(x) == pWARN_NONE)
/* if PL_warnhook is set to this value, then warnings die */
-#define PERL_WARNHOOK_FATAL (((SV*)0) + 1)
+#define PERL_WARNHOOK_FATAL (&PL_sv_placeholder)
/* Warnings Categories added in Perl 5.008 */
diff --git a/warnings.pl b/warnings.pl
index 3c978d1d78..f2380d9dbb 100644
--- a/warnings.pl
+++ b/warnings.pl
@@ -284,7 +284,7 @@ print WARN <<'EOM' ;
(x) == pWARN_NONE)
/* if PL_warnhook is set to this value, then warnings die */
-#define PERL_WARNHOOK_FATAL (((SV*)0) + 1)
+#define PERL_WARNHOOK_FATAL (&PL_sv_placeholder)
EOM
my $offset = 0 ;