Skip to content

Commit

Permalink
Supress parameter declared but never referenced when using older nvhpc
Browse files Browse the repository at this point in the history
  • Loading branch information
ptheywood committed Jan 11, 2024
1 parent f7f9082 commit d43b6a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/warnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ if(NOT COMMAND flamegpu_suppress_some_compiler_warnings)
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "22.7")
target_compile_options(${SSCW_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE:C,CXX>:SHELL:-Wno-unused-but-set-parameter>")
target_compile_options(${SSCW_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler -Wno-unused-but-set-parameter>")
else()
# parameter "x" was declared but never referenced
target_compile_options(${SSCW_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcudafe --diag_suppress=177>")
target_compile_options(${SSCW_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE:C,CXX>:SHELL:--diag_suppress=177>")
endif()
else()
# Linux specific warning suppressions
Expand Down

0 comments on commit d43b6a8

Please sign in to comment.