Browse Source

👷 Enable additional warnings for Clang

pull/1219/head
Anders Jenbo 5 years ago
parent
commit
8dfff1c75d
  1. 12
      CMakeLists.txt

12
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)

Loading…
Cancel
Save