diff options
author | Uri Lublin <uril@redhat.com> | 2015-02-15 17:11:58 +0200 |
---|---|---|
committer | Uri Lublin <uril@redhat.com> | 2015-03-15 13:57:12 +0200 |
commit | b2c48e7ebabb14977b0be31ed1ca5f916ff58636 (patch) | |
tree | 445dfc53a782434c87b4f01d7bc6b606a0cba44f /m4 | |
parent | 6b4c036bdba53ddafde0a706c6de5d2172c09b25 (diff) | |
download | spice-b2c48e7ebabb14977b0be31ed1ca5f916ff58636.tar.gz spice-b2c48e7ebabb14977b0be31ed1ca5f916ff58636.tar.xz spice-b2c48e7ebabb14977b0be31ed1ca5f916ff58636.zip |
m4: WARN FLAGS: Drop -Wenum-compare
My RHEL-6 gcc (4.4.7) complains a lot about it:
cc1: warning: command line option "-Wenum-compare" is
valid for C++/ObjC++ but not for C
For older gcc version (e.g. 4.4.7), man gcc says
-Wenum-compare is "C++ and Objective-C++ only".
For newer gcc (e.g. 4.9.2), man gcc says
"In C this warning is enabled by -Wall."
Diffstat (limited to 'm4')
-rw-r--r-- | m4/spice-compile-warnings.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4 index 31f2a9c3..ee854297 100644 --- a/m4/spice-compile-warnings.m4 +++ b/m4/spice-compile-warnings.m4 @@ -23,6 +23,9 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[ dontwarn="$dontwarn -Wc++-compat" dontwarn="$dontwarn -Wabi" dontwarn="$dontwarn -Wdeprecated" + # For older gcc versions, -Wenum-compare is "C++ and Objective-C++ only" + # For newer gcc versions, -Wenum-compare is "enabled by -Wall" + dontwarn="$dontwarn -Wenum-compare" # Don't care about ancient C standard compat dontwarn="$dontwarn -Wtraditional" # Don't care about ancient C standard compat |