Suppress -Wvolatile gcc warnings in Perl headers for C++20
Seen in Perl 5.34 and earlier
This commit is contained in:
parent
e0ed4cc62d
commit
89f57708e9
1 changed files with 11 additions and 0 deletions
|
|
@ -4,10 +4,21 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __GNUC__ >= 10
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
#pragma GCC diagnostic ignored "-Wvolatile"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "EXTERN.h"
|
#include "EXTERN.h"
|
||||||
#include "perl.h"
|
#include "perl.h"
|
||||||
#include "XSUB.h"
|
#include "XSUB.h"
|
||||||
|
|
||||||
|
#if __GNUC__ >= 10
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
/* PERL_REVISION was added in Perl 5.6. */
|
/* PERL_REVISION was added in Perl 5.6. */
|
||||||
#if !defined PERL_REVISION || (PERL_REVISION-0 == 5 && PERL_VERSION-0 < 8)
|
#if !defined PERL_REVISION || (PERL_REVISION-0 == 5 && PERL_VERSION-0 < 8)
|
||||||
# error SWIG requires Perl >= 5.8.0
|
# error SWIG requires Perl >= 5.8.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue