Skip to content

Commit

Permalink
Disable GCC warning in nvcc generated code
Browse files Browse the repository at this point in the history
Fixes the following warning:
```
/builds/hzdr/crp/alpaka/test/unit/math/src/Defines.hpp:52:35: error: left operand of comma operator has no effect [-Werror=unused-value]
   52 |                         for(size_t i = 0; i < argsItem.arity_nr; ++i)
      |                          ~~~~~~~~~^~~~~~~~~~
```
  • Loading branch information
bernhardmgruber authored and j-stephan committed Sep 19, 2023
1 parent efb8a15 commit 9327701
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/common/devCompileOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
list(APPEND alpaka_DEV_COMPILE_OPTIONS "-Walloc-zero")
list(APPEND alpaka_DEV_COMPILE_OPTIONS "-Walloca")
list(APPEND alpaka_DEV_COMPILE_OPTIONS "-Wcast-align=strict")
list(APPEND alpaka_DEV_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler -Wno-unused-value>") # occurs in nvcc-generated code
endif()

# Clang, AppleClang, ICPX
Expand Down

0 comments on commit 9327701

Please sign in to comment.