From a2409bebd06a1d02b2d648c44455a0fb3d0e28a6 Mon Sep 17 00:00:00 2001 From: "Arandjelovic, Marko" Date: Fri, 15 Aug 2025 21:41:35 +0200 Subject: [PATCH] SWDEV-542815 - Fix unused-parameter compiler warning (#263) * SWDEV-542815 - Fix unused-parameter compiler warning * SWDEV-542815 - Run clang-format [ROCm/hip commit: f94cc3711eece8c73a9ee1419cb94665abed80c5] --- projects/hip/include/hip/hip_runtime_api.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index 4460ad3978..7b534787ac 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -9354,7 +9354,9 @@ static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSize(int* gridSiz template static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSizeWithFlags(int* gridSize, int* blockSize, T f, size_t dynSharedMemPerBlk = 0, int blockSizeLimit = 0, unsigned int flags = 0 ) { - return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize, reinterpret_cast(f),dynSharedMemPerBlk,blockSizeLimit); + (void)flags; + return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize, reinterpret_cast(f), + dynSharedMemPerBlk, blockSizeLimit); } #endif // defined(__clang__) && defined(__HIP__)