⚗️ update warning flags

This commit is contained in:
Niels Lohmann 2021-08-17 10:58:02 +02:00
parent b30065bc5f
commit 7a0121381d
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -88,6 +88,14 @@ file(GLOB_RECURSE SRC_FILES ${PROJECT_SOURCE_DIR}/include/nlohmann/*.hpp)
# Thorough check with recent compilers
###############################################################################
# Ignored Clang warnings:
# -Wno-c++98-compat The library targets C++11.
# -Wno-c++98-compat-pedantic The library targets C++11.
# -Wno-deprecated-declarations The library contains annotations for deprecated functions.
# -Wno-extra-semi-stmt The library uses std::assert which triggers this warning.
# -Wno-padded We do not care about padding warnings.
# -Wno-covered-switch-default All switches list all cases and a default case.
set(CLANG_CXXFLAGS "-std=c++11 \
-Werror \
-Weverything \
@ -97,7 +105,6 @@ set(CLANG_CXXFLAGS "-std=c++11 \
-Wno-extra-semi-stmt \
-Wno-padded \
-Wno-covered-switch-default \
-Wno-weak-vtables \
")
set(GCC_CXXFLAGS "-std=c++11 \