Skip to content

Commit

Permalink
Disable unused and cpp warnings
Browse files Browse the repository at this point in the history
fortify warning cannot be turned off otherwise even with explicit `D_FORTIFY_SOURCE=0`
  • Loading branch information
ottoblep committed Jan 7, 2025
1 parent 8c553be commit 5d29b7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/CompilerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ function(enable_project_options target_name)
-fno-trapping-math>)

# enable some more options for better debugging
target_compile_options(${target_name} INTERFACE $<$<CONFIG:DEBUG>:-O0 -fno-omit-frame-pointer
-fno-optimize-sibling-calls -fno-inline-functions>)
target_compile_options(
${target_name} INTERFACE $<$<CONFIG:DEBUG>:-O0 -Wno-cpp -Wno-unused-result -fno-omit-frame-pointer
-fno-optimize-sibling-calls -fno-inline-functions>)
endif()

option(BINDINGS "Configure for building Python bindings")
Expand Down

0 comments on commit 5d29b7a

Please sign in to comment.