summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-01-07 20:30:18 +0100
committerJose <jose@zeroc.com>2019-01-07 20:31:00 +0100
commit3f49b4279a4ebf7fbd0057f355dca879cc170418 (patch)
tree73c180d2ae66c423d747520a72fe4ae2853d4cdc /ruby
parentWhitespace cleanup (diff)
downloadice-3f49b4279a4ebf7fbd0057f355dca879cc170418.tar.bz2
ice-3f49b4279a4ebf7fbd0057f355dca879cc170418.tar.xz
ice-3f49b4279a4ebf7fbd0057f355dca879cc170418.zip
Ruby 2.6 bugfix
Diffstat (limited to 'ruby')
-rw-r--r--ruby/src/IceRuby/Config.h18
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.