From 8da8fc1be944c01264d49638bb99fc46b6082fb2 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Tue, 22 Mar 2022 12:27:52 +0530 Subject: [PATCH] SWDEV-312141 - Fix to avoid shadow compilation warning (#2556) Change-Id: Ie327ec5eb3f3314b24aa512ce180760f18ee5348 --- include/hip/hip_bfloat16.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/hip/hip_bfloat16.h b/include/hip/hip_bfloat16.h index 642090b4f5..eb576b3b5b 100644 --- a/include/hip/hip_bfloat16.h +++ b/include/hip/hip_bfloat16.h @@ -50,6 +50,8 @@ typedef struct #include #include +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wshadow" struct hip_bfloat16 { uint16_t data; @@ -151,6 +153,7 @@ private: return uint16_t(u.int32 >> 16) | (!(~u.int32 & 0x7f800000) && (u.int32 & 0xffff)); } }; +#pragma clang diagnostic pop typedef struct {