Warning suppression change
Earlier gcc (4.7) will warn about unknown warning pragmas! -Wpedantic suppression is only available in 4.8 and later
This commit is contained in:
parent
0236435c48
commit
a73a783fcd
4 changed files with 4 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ enum ForwardEnum2 { CCC, DDD };
|
|||
%}
|
||||
|
||||
%inline %{
|
||||
#if defined(__GNUC__)
|
||||
#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
|
||||
/* ISO C forbids forward references to ‘enum’ types [-Werror=pedantic] */
|
||||
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
%inline %{
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
|
||||
/* comma at end of enumerator list [-Werror=pedantic] */
|
||||
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
%module li_std_auto_ptr
|
||||
|
||||
%{
|
||||
#if defined(__GNUC__)
|
||||
#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // auto_ptr deprecation
|
||||
#endif
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
%inline %{
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
|
||||
/* ISO C++ prohibits anonymous structs [-Werror=pedantic] */
|
||||
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue