CMake: Move -Wlogical-op to common flags
It's is valid for C and C++ so move -Wlogical-op to common flags. Remove comment because GCC 4.4.5 is over 12 years old at this time, assume it is outdated.
This commit is contained in:
parent
09718fb9b3
commit
4c4b3ec3a9
|
@ -647,6 +647,7 @@ else() # ! MSVC
|
||||||
-Wredundant-decls
|
-Wredundant-decls
|
||||||
-Wunreachable-code # Clang-only
|
-Wunreachable-code # Clang-only
|
||||||
-Wdocumentation # Clang-only
|
-Wdocumentation # Clang-only
|
||||||
|
-Wlogical-op # GCC-only
|
||||||
#
|
#
|
||||||
# Disable errors unconditionally for some static analysis warnings
|
# Disable errors unconditionally for some static analysis warnings
|
||||||
# that are dormant at lower optimizations levels and also
|
# that are dormant at lower optimizations levels and also
|
||||||
|
@ -702,13 +703,6 @@ else() # ! MSVC
|
||||||
-Wshadow
|
-Wshadow
|
||||||
-Wold-style-definition
|
-Wold-style-definition
|
||||||
-Wstrict-prototypes
|
-Wstrict-prototypes
|
||||||
#
|
|
||||||
# Some versions of GCC, such as 4.3.2 and 4.4.5,
|
|
||||||
# generate logical-op warnings when strchr() is given a
|
|
||||||
# constant string. The autoconf script checked for that;
|
|
||||||
# we don't.
|
|
||||||
#
|
|
||||||
-Wlogical-op
|
|
||||||
-Wjump-misses-init
|
-Wjump-misses-init
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue