Comment out gcc-only checks (#995)

This commit is contained in:
Sergey Kuznetsov
2023-11-21 09:53:08 +00:00
committed by GitHub
parent 74660aebf1
commit 3bab90ca7a

View File

@@ -19,14 +19,15 @@ set(COMPILER_FLAGS
-Wunused
)
if (is_gcc AND NOT lint)
list(APPEND COMPILER_FLAGS
-Wduplicated-branches
-Wduplicated-cond
-Wlogical-op
-Wuseless-cast
)
endif ()
#TODO: reenable when we change CI #884
# if (is_gcc AND NOT lint)
# list(APPEND COMPILER_FLAGS
# -Wduplicated-branches
# -Wduplicated-cond
# -Wlogical-op
# -Wuseless-cast
# )
# endif ()
if (is_clang)
list(APPEND COMPILER_FLAGS