diff --git a/CMakeLists.txt b/CMakeLists.txt index 09fc85a064f61..435e421c9e24e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -224,7 +224,7 @@ ELSE() -Woverloaded-virtual \ -Wpedantic") IF(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") - SET(CATA_WARNINGS "$(CATA_WARNINGS) -Wsuggest-override") + SET(CATA_WARNINGS "${CATA_WARNINGS} -Wsuggest-override") ENDIF(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") # Compact the whitespace in the warning string string(REGEX REPLACE "[\t ]+" " " CATA_WARNINGS "${CATA_WARNINGS}") diff --git a/doc/DEVELOPER_TOOLING.md b/doc/DEVELOPER_TOOLING.md index 3c50ab19cf580..ae2f14f195809 100644 --- a/doc/DEVELOPER_TOOLING.md +++ b/doc/DEVELOPER_TOOLING.md @@ -263,7 +263,7 @@ to avoid compiler errors. python3 /clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \ -clang-tidy-binary=build/tools/clang-tidy-plugin/CataAnalyzerPlugin.exe \ -p=build "\.cpp$" \ - -extra-arg=-target -extra-arg=x86_64-pc-windows-gnu -extra-arg=-pthread -extra-arg=-DSDL_DISABLE_ANALYZE_MACROS \ + -extra-arg=-target -extra-arg=x86_64-pc-windows-gnu -extra-arg=-pthread -extra-arg=-DSDL_DISABLE_ANALYZE_MACROS -extra-arg=-Wno-unknown-warning-option \ -extra-arg=-isystem -extra-arg=/clang/lib/Headers ```