Suppress Ruby.h gcc warnings
This commit is contained in:
parent
ae4642d4bb
commit
d9fd09aa21
1 changed files with 15 additions and 0 deletions
|
|
@ -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>
|
#include <ruby.h>
|
||||||
|
|
||||||
|
#if __GNUC__ >= 7
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
|
/* 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
|
* breaks using rb_intern as an lvalue, as SWIG does. We work around this
|
||||||
* issue for now by disabling this.
|
* issue for now by disabling this.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue