Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix warning unused return value #44

Conversation

psychocoderHPC
Copy link
Member

cuda_memtest/cuda_memtest.cpp:162:9: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
        MEMTEST_API_PREFIX(GetLastError());
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rwidera/workspace/picongpu/thirdParty/cuda_memtest/cuda_memtest.h:62:38: note: expanded from macro 'MEMTEST_API_PREFIX'
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rwidera/workspace/picongpu/thirdParty/cuda_memtest/cuda_memtest.h:41:36: note: expanded from macro 'MEMTEST_PP_CONCAT_DO'
                                   ^~~~
<scratch space>:140:1: note: expanded from here
hipGetLastError
^~~~~~~~~~~~~~~

```
cuda_memtest/cuda_memtest.cpp:162:9: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
        MEMTEST_API_PREFIX(GetLastError());
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rwidera/workspace/picongpu/thirdParty/cuda_memtest/cuda_memtest.h:62:38: note: expanded from macro 'MEMTEST_API_PREFIX'
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rwidera/workspace/picongpu/thirdParty/cuda_memtest/cuda_memtest.h:41:36: note: expanded from macro 'MEMTEST_PP_CONCAT_DO'
                                   ^~~~
<scratch space>:140:1: note: expanded from here
hipGetLastError
^~~~~~~~~~~~~~~
```
@psychocoderHPC psychocoderHPC merged commit 025bc92 into ComputationalRadiationPhysics:dev Sep 7, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant