summaryrefslogtreecommitdiff
path: root/globvar.sym
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-12-30 21:29:07 -0700
committerKarl Williamson <khw@cpan.org>2019-01-05 10:42:26 -0700
commit8c165a32b7cc4f2a147a37c920a96f1b09b2386d (patch)
tree86b73c56af6a273a3985db49330d31068995f692 /globvar.sym
parent81f816b3b4c1f7193f4c870874ef3879c690373f (diff)
downloadperl-8c165a32b7cc4f2a147a37c920a96f1b09b2386d.tar.gz
regen/warnings.pl: Fix undefined C behavior
This fixes compiler warnings "performing pointer arithmetic on a null pointer has undefined behavior" There are several ways to fix this. This one was suggested by Tomasz Konojacki++. Instead of trying to point to address 1 and 2, two variables are created, and we point to them. const is cast away.
Diffstat (limited to 'globvar.sym')
-rw-r--r--globvar.sym2
1 files changed, 2 insertions, 0 deletions
diff --git a/globvar.sym b/globvar.sym
index 6fb387ca0a..476f4ca095 100644
--- a/globvar.sym
+++ b/globvar.sym
@@ -83,4 +83,6 @@ PL_warn_nl
PL_warn_nosemi
PL_warn_reserved
PL_warn_uninit
+PL_WARN_ALL
+PL_WARN_NONE
PL_watch_pvx