diff options
author | Karl Williamson <khw@cpan.org> | 2019-09-11 16:22:15 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-09-12 21:36:38 -0600 |
commit | 238965b4f5bba9e8e2693c09675ca8a1a49a4ec7 (patch) | |
tree | f0d96efd3b02fbd46a56c705dec97fefa28524c6 /mathoms.c | |
parent | da006e4432402cea01c9018743467314377e3c1e (diff) | |
download | perl-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ /* |