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:
William S Fulton 2015-02-07 22:12:29 +00:00
commit a73a783fcd
4 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ enum ForwardEnum2 { CCC, DDD };
%} %}
%inline %{ %inline %{
#if defined(__GNUC__) #if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
/* ISO C forbids forward references to ‘enum’ types [-Werror=pedantic] */ /* ISO C forbids forward references to ‘enum’ types [-Werror=pedantic] */
#pragma GCC diagnostic ignored "-Wpedantic" #pragma GCC diagnostic ignored "-Wpedantic"
#endif #endif

View file

@ -2,7 +2,7 @@
%inline %{ %inline %{
#if defined(__GNUC__) #if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
/* comma at end of enumerator list [-Werror=pedantic] */ /* comma at end of enumerator list [-Werror=pedantic] */
#pragma GCC diagnostic ignored "-Wpedantic" #pragma GCC diagnostic ignored "-Wpedantic"
#endif #endif

View file

@ -1,7 +1,7 @@
%module li_std_auto_ptr %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 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" // auto_ptr deprecation
#endif #endif
%} %}

View file

@ -50,7 +50,7 @@
%inline %{ %inline %{
#if defined(__GNUC__) #if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
/* ISO C++ prohibits anonymous structs [-Werror=pedantic] */ /* ISO C++ prohibits anonymous structs [-Werror=pedantic] */
#pragma GCC diagnostic ignored "-Wpedantic" #pragma GCC diagnostic ignored "-Wpedantic"
#endif #endif