From cdb82b65588497fbdf58d51cfac9c0dd4bcebf72 Mon Sep 17 00:00:00 2001 From: sumanthtg <90063301+sumanthtg@users.noreply.github.com> Date: Fri, 24 Sep 2021 16:27:17 +0530 Subject: [PATCH] SWDEV-303262 - Catch2 test fix for -Wunused-but-set-parameter compilation error. (#2357) Change-Id: I102d80763103fa792ab1282745bd89f8d24454d2 [ROCm/hip-tests commit: dc22ccc85ee94806c99ab1952914914225cd1f63] --- projects/hip-tests/catch/unit/stream/hipStreamWithCUMask.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/stream/hipStreamWithCUMask.cc b/projects/hip-tests/catch/unit/stream/hipStreamWithCUMask.cc index f78ef9ee2c..0dd855702d 100644 --- a/projects/hip-tests/catch/unit/stream/hipStreamWithCUMask.cc +++ b/projects/hip-tests/catch/unit/stream/hipStreamWithCUMask.cc @@ -95,10 +95,9 @@ void createDisabledCUMask(std::vector *pdisabledCUMask, } } -void Callback(hipStream_t stream, hipError_t status, +void Callback(hipStream_t, hipError_t status, void* userData) { isPassed = true; - stream = 0; HIP_CHECK(status); REQUIRE(userData == nullptr); for (size_t i = 0; i < N; i++) {