Suppress pedantic warnings in testcases
This commit is contained in:
parent
a4ba9528b4
commit
ec1eac5b72
3 changed files with 18 additions and 0 deletions
|
|
@ -8,6 +8,11 @@ enum ForwardEnum2 { CCC, DDD };
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
/* ISO C forbids forward references to ‘enum’ types [-Werror=pedantic] */
|
||||||
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(__SUNPRO_C)
|
#if !defined(__SUNPRO_C)
|
||||||
enum ForwardEnum1;
|
enum ForwardEnum1;
|
||||||
enum ForwardEnum2;
|
enum ForwardEnum2;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
%module enum_macro
|
%module enum_macro
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
/* comma at end of enumerator list [-Werror=pedantic] */
|
||||||
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
enum Greeks1
|
enum Greeks1
|
||||||
{
|
{
|
||||||
#define GREEK1 -1
|
#define GREEK1 -1
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,12 @@
|
||||||
%warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) Outer2::IgnoreMe;
|
%warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) Outer2::IgnoreMe;
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
/* ISO C++ prohibits anonymous structs [-Werror=pedantic] */
|
||||||
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
|
#endif
|
||||||
|
|
||||||
struct Outer {
|
struct Outer {
|
||||||
typedef int Integer;
|
typedef int Integer;
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue