From 34c7215a2f087c4de03c25d5c13e78874ffb9f9f Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 5 Aug 2016 18:04:25 +0200 Subject: [PATCH] ruby: ignore -Wshift-overflow warnings There seems to be a -Wshift-overflow bug in a Ruby 2.3 header, so add a GCC diagnostic override to avoid build failures with --enable-werror. --- generator/ruby.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generator/ruby.ml b/generator/ruby.ml index fb0003bfe..56a387e5e 100644 --- a/generator/ruby.ml +++ b/generator/ruby.ml @@ -48,6 +48,9 @@ let rec generate_ruby_c () = #pragma GCC diagnostic push #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" +#if defined(__GNUC__) && __GNUC__ >= 6 /* gcc >= 6 */ +#pragma GCC diagnostic ignored \"-Wshift-overflow\" +#endif #include #pragma GCC diagnostic pop