From aa536f33797a72863152087024391bdb506a8647 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 17 Aug 2021 11:08:46 +0200 Subject: [PATCH] :alembic: update warning flags --- cmake/ci.cmake | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cmake/ci.cmake b/cmake/ci.cmake index 45b585305..f593c0411 100644 --- a/cmake/ci.cmake +++ b/cmake/ci.cmake @@ -95,6 +95,7 @@ file(GLOB_RECURSE SRC_FILES ${PROJECT_SOURCE_DIR}/include/nlohmann/*.hpp) # -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. +# -Wno-weak-vtables The library is header-only. set(CLANG_CXXFLAGS "-std=c++11 \ -Werror \ @@ -105,8 +106,19 @@ set(CLANG_CXXFLAGS "-std=c++11 \ -Wno-extra-semi-stmt \ -Wno-padded \ -Wno-covered-switch-default \ + -Wno-weak-vtables \ ") +# Ignored GCC warnings: +# -Wno-abi-tag We do not care about ABI tags. +# -Wno-aggregate-return The library uses aggregate returns. +# -Wno-long-long The library uses the long long type to interface with system functions. +# -Wno-namespaces The library uses namespaces. +# -Wno-noexcept +# -Wno-padded We do not care about padding warnings. +# -Wno-system-headers We do not care about warnings in system headers. +# -Wno-templates The library uses templates. + set(GCC_CXXFLAGS "-std=c++11 \ -pedantic \ -Werror \ @@ -259,7 +271,7 @@ set(GCC_CXXFLAGS "-std=c++11 \ -Wmultistatement-macros \ -Wno-namespaces \ -Wnarrowing \ - -Wno-noexcept \ + -Wnoexcept \ -Wnoexcept-type \ -Wnon-template-friend \ -Wnon-virtual-dtor \