summaryrefslogtreecommitdiff
path: root/mathoms.c
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 /mathoms.c
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 'mathoms.c')
-rw-r--r--mathoms.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mathoms.c b/mathoms.c
index 65bf267943..8089b79623 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -71,6 +71,10 @@ C<-Accflags='-DNO_MATHOMS'>
*/
#else
+/* The functions in this file should be able to call other deprecated functions
+ * without a compiler warning */
+GCC_DIAG_IGNORE(-Wdeprecated-declarations)
+
/* ref() is now a macro using Perl_doref;
* this version provided for binary compatibility only.
*/
@@ -1785,6 +1789,8 @@ Perl_sv_2pvbyte(pTHX_ SV *sv, STRLEN *const lp)
return sv_2pvbyte(sv, lp);
}
+GCC_DIAG_RESTORE
+
#endif /* NO_MATHOMS */
/*