ROCm/rocThrust

hipGetLastError(); -Wunused-result

Closed this issue · 1 comments

rocThrust is triggering a warning in a call to hipGetLastError

/rocthrust/thrust/system/hip/detail/malloc_and_free.h:71:9: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
        hipGetLastError(); // Clear global hip error state.
        ^~~~~~~~~~~~~~~

This is with:

% clang --version
clang version 12.0.0 (/llvm/llvm-project/clang 009181e63cd6a46681319335b18180d91d05f241)