mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
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."
This commit is contained in:
parent
6b4c036bdb
commit
b2c48e7eba
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user