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 %{
|
%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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue