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 %{
#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