Skip to content

Commit

Permalink
build: add -Wno-unused-result with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Apr 13, 2024
1 parent 9cd960c commit e6165d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set(WebAssemblyInterface_SRCS
)
itk_module_add_library(WebAssemblyInterface ${WebAssemblyInterface_SRCS})
target_link_libraries(WebAssemblyInterface LINK_PUBLIC cbor cpp-base64)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
target_compile_options(WebAssemblyInterface PRIVATE "-Wno-unused-result")
endif()

Expand Down

0 comments on commit e6165d9

Please sign in to comment.