Created
August 3, 2016 07:27
-
-
Save pparidans/78f4405e88bab4cb1fa11641bd7868eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configure.in b/configure.in | |
index 375ef55..5608a21 100644 | |
--- a/configure.in | |
+++ b/configure.in | |
@@ -788,6 +788,9 @@ rb_cv_warnflags="$warnflags" | |
if test "$GCC:${warnflags+set}:no" = yes::no; then | |
if test $gcc_major -ge 4; then | |
extra_warning=-Werror=extra-tokens | |
+ if test $gcc_major -gt 4 -o $gcc_minor -ge 4; then | |
+ extra_warning="$extra_warning -Wno-packed-bitfield-compat" | |
+ fi | |
else | |
extra_warning= | |
fi | |
@@ -801,7 +804,6 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then | |
-Werror=implicit-function-declaration \ | |
-Werror=division-by-zero \ | |
-Werror=deprecated-declarations \ | |
- -Wno-packed-bitfield-compat \ | |
$extra_warning \ | |
; do | |
if test "$particular_werror_flags" != yes; then |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment