diff options
-rw-r--r-- | ruby/src/IceRuby/Config.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ruby/src/IceRuby/Config.h b/ruby/src/IceRuby/Config.h index 8de4abb3bf4..0a91584cdee 100644 --- a/ruby/src/IceRuby/Config.h +++ b/ruby/src/IceRuby/Config.h @@ -49,8 +49,26 @@ #define HAVE_ISFINITE 1 #endif + +// +// BUGFIX: Workaround unused parameter in ruby.h header file +// +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wunused-parameter" +#elif defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + #include <ruby.h> +#if defined(__clang__) +# pragma clang diagnostic pop +#elif defined(__GNUC__) +# pragma GCC diagnostic pop +#endif + // // The Ruby header file win32/win32.h defines a number of macros for // functions like shutdown() and close() that wreak havoc. |