From ee24b42dbd7190c7267037e12bf99bc64e0c6f84 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Fri, 23 Jul 2021 19:43:27 +0200 Subject: [PATCH] BUILD: Set warnings for clang --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b70d209..ae9604a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,9 +111,15 @@ target_link_libraries(Vivy PRIVATE -fopenmp) if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") target_compile_options(Vivy PRIVATE -Weverything - -Wno-c++98-compat + + # Disable some things because we want C++20 and don't constrol some Qt + # generated files... + -Wno-c++98-compat -Wno-c++98-c++11-c++14-c++17-compat-pedantic -Wno-extra-semi-stmt - -Wno-c++98-c++11-c++14-c++17-compat-pedantic + -Wno-redundant-parens + -Wno-padded + -Wno-global-constructors + -Wno-exit-time-destructors ) target_link_libraries(Vivy PRIVATE -fopenmp -- GitLab