Skip to content

Commit

Permalink
#2264: fix unused variable warnings (cuda, hip)
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed May 15, 2024
1 parent 9ec793f commit 2031cf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/active/test_async_op_cuda.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct CUDAGroup {
checkCudaErrors(cudaStreamDestroy(stream2_), "cudaStreamDestroy(stream2_)");
}

void cudaHandler(MyMsg* msg) {
void cudaHandler([[maybe_unused]] MyMsg* msg) {
auto const nBytes = dataSize_ * sizeof(double);

checkCudaErrors(cudaStreamCreate(&stream1_), "cudaStreamCreate (stream1_)");
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/active/test_async_op_hip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ struct hipGroup {
checkHipErrors(hipStreamDestroy(stream2_), "hipStreamDestroy(stream2_)");
}

void hipHandler(MyMsg* msg) {
void hipHandler([[maybe_unused]] MyMsg* msg) {
auto const nBytes = dataSize_ * sizeof(double);

checkHipErrors(hipStreamCreate(&stream1_), "hipStreamCreate (stream1_)");
Expand Down

0 comments on commit 2031cf0

Please sign in to comment.