From 8dfff1c75d7e473dca91847e515571a489c5dca0 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 18 Mar 2021 20:46:03 +0100 Subject: [PATCH] :construction_worker: Enable additional warnings for Clang --- CMakeLists.txt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f663285a..b8f90e036 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -635,9 +635,6 @@ if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC") genex_for_option(DEBUG) target_compile_options(devilution PUBLIC $<${DEBUG_GENEX}:-fno-omit-frame-pointer>) - # Warnings for devilution - target_compile_options(devilution PRIVATE -Wno-int-to-pointer-cast) - # Warnings for devilutionX target_compile_options(${BIN_TARGET} PRIVATE -Wall -Wextra -Wno-unused-parameter -Wno-format-security) @@ -650,15 +647,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") target_compile_options(devilution PRIVATE "/W0") endif() -if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") - # Style issues - target_compile_options(${BIN_TARGET} PRIVATE -Wno-parentheses -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses) - # Silence warnings about __int64 alignment hack not always being applicable - target_compile_options(${BIN_TARGET} PRIVATE -Wno-ignored-attributes) - # Silence appfat.cpp warnings - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing") -endif() - if(APPLE) set_source_files_properties("./Packaging/macOS/AppIcon.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources) set_source_files_properties("./Packaging/resources/CharisSILB.ttf" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)