summaryrefslogtreecommitdiff
path: root/intrpvar.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-09-11 16:22:15 -0600
committerKarl Williamson <khw@cpan.org>2019-09-12 21:36:38 -0600
commit238965b4f5bba9e8e2693c09675ca8a1a49a4ec7 (patch)
treef0d96efd3b02fbd46a56c705dec97fefa28524c6 /intrpvar.h
parentda006e4432402cea01c9018743467314377e3c1e (diff)
downloadperl-238965b4f5bba9e8e2693c09675ca8a1a49a4ec7.tar.gz
PATCH: [perl #134405] Compiler warnings in blead
This was caused by functions that should have been deprecated all along, and now are. But they are still called in places. In most instances one deprecated function is a wrapper for another. In one instance, the calling of the function is to just make sure that mathoms.o gets linked to. The solution adopted here, some of which was suggested by Tony Cook, is to use #pragmas to silence the warnings. By doing this around the entirety of mathoms.c, future issues will most likely be avoided. And there are unlikely to enough future cases outside of mathoms to cause a problem.
Diffstat (limited to 'intrpvar.h')
-rw-r--r--intrpvar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/intrpvar.h b/intrpvar.h
index a4e5864aed..47383ae818 100644
--- a/intrpvar.h
+++ b/intrpvar.h
@@ -804,6 +804,8 @@ PERLVARI(I, clocktick, long, 0) /* this many times() ticks in a second */
/* Hooks to shared SVs and locks. */
PERLVARI(I, sharehook, share_proc_t, Perl_sv_nosharing)
PERLVARI(I, lockhook, share_proc_t, Perl_sv_nosharing)
+
+GCC_DIAG_IGNORE(-Wdeprecated-declarations)
#ifdef NO_MATHOMS
# define PERL_UNLOCK_HOOK Perl_sv_nosharing
#else
@@ -812,6 +814,8 @@ PERLVARI(I, lockhook, share_proc_t, Perl_sv_nosharing)
#endif
PERLVARI(I, unlockhook, share_proc_t, PERL_UNLOCK_HOOK)
+GCC_DIAG_RESTORE
+
PERLVARI(I, threadhook, thrhook_proc_t, Perl_nothreadhook)
/* Can shared object be destroyed */