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.
This commit is contained in:
Pino Toscano
2016-08-05 18:04:25 +02:00
parent 71de3d49a3
commit 34c7215a2f

View File

@@ -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 <ruby.h>
#pragma GCC diagnostic pop