Suppress pedantic warnings in testcases
This commit is contained in:
parent
a4ba9528b4
commit
ec1eac5b72
3 changed files with 18 additions and 0 deletions
|
|
@ -49,6 +49,12 @@
|
|||
%warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) Outer2::IgnoreMe;
|
||||
|
||||
%inline %{
|
||||
|
||||
#if defined(__GNUC__)
|
||||
/* ISO C++ prohibits anonymous structs [-Werror=pedantic] */
|
||||
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||
#endif
|
||||
|
||||
struct Outer {
|
||||
typedef int Integer;
|
||||
///////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue