diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2022-07-31 14:32:04 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2022-07-31 14:51:26 +0100 |
commit | d9fd09aa21f4578bd0232c9b5e477bfba4d3029b (patch) | |
tree | f2889834c66e40dd9ce5080c255a47875d243100 /Lib | |
parent | ae4642d4bb9cb94f4ee89bd6e9673c87f52af06e (diff) | |
download | swig-d9fd09aa21f4578bd0232c9b5e477bfba4d3029b.tar.gz |
Suppress Ruby.h gcc warnings
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ruby/rubyhead.swg | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/ruby/rubyhead.swg b/Lib/ruby/rubyhead.swg index bf4e36248..06c430bf6 100644 --- a/Lib/ruby/rubyhead.swg +++ b/Lib/ruby/rubyhead.swg @@ -1,5 +1,20 @@ +#if __GNUC__ >= 7 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wregister" +#if __GNUC__ >= 10 +#pragma GCC diagnostic ignored "-Wvolatile" +#if __GNUC__ >= 11 +#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" +#endif +#endif +#endif + #include <ruby.h> +#if __GNUC__ >= 7 +#pragma GCC diagnostic pop +#endif + /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which * breaks using rb_intern as an lvalue, as SWIG does. We work around this * issue for now by disabling this. |