Skip to content

Commit

Permalink
Remove warning suppressions (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Mar 2, 2024
1 parent aef7688 commit 249c4b4
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions cmake/modules/SleipnirCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,11 @@ macro(sleipnir_compiler_flags target)
${target}
PRIVATE -Wall -pedantic -Wextra -Werror -Wno-unused-parameter
)

# clang 18 warns on `operator"" _a` in dependencies
if(
${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"
AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL "18"
)
target_compile_options(
${target}
PRIVATE -Wno-deprecated-literal-operator
)
endif()

# Disable warning false positives in fmt
if(
${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU"
AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL "13"
)
target_compile_options(
${target}
PRIVATE -Wno-dangling-reference -Wno-stringop-overflow
)
endif()
else()
target_compile_options(
${target}
PRIVATE /wd4146 /wd4244 /wd4251 /wd4267 /WX
)
# Suppress the following warnings:
# * C4244: lossy conversion
# * C4251: missing dllexport/dllimport attribute on data member
target_compile_options(${target} PRIVATE /wd4244 /wd4251 /WX)
endif()

target_compile_features(${target} PUBLIC cxx_std_20)
Expand Down

0 comments on commit 249c4b4

Please sign in to comment.