mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user