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:
João Valverde 2022-11-17 00:15:03 +00:00
parent 09718fb9b3
commit 4c4b3ec3a9
1 changed files with 1 additions and 7 deletions

View File

@ -647,6 +647,7 @@ else() # ! MSVC
-Wredundant-decls
-Wunreachable-code # Clang-only
-Wdocumentation # Clang-only
-Wlogical-op # GCC-only
#
# Disable errors unconditionally for some static analysis warnings
# that are dormant at lower optimizations levels and also
@ -702,13 +703,6 @@ else() # ! MSVC
-Wshadow
-Wold-style-definition
-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
)