SWDEV-307838 - Push clang diagnostics to be ignored

Change-Id: I7487170b44994079bfe7167b6211489a0c7fef2b
이 커밋은 다음에 포함됨:
Jatin Chaudhary 작성하고 Maneesh Gupta가 2021-12-03 02:48:34 -05:00를 커밋함
1 부모 5b08779b25
커밋 bf28ecb048
1 파일이 변경됨
+4 -1
+4 -1
파일 보기
@@ -27,7 +27,9 @@
function(get_hiprtc_macros HIPRTC_DEFINES)
set(${HIPRTC_DEFINES}
"#define __device__ __attribute__((device))\n\
"#pragma clang diagnostic push\n\
#pragma clang diagnostic ignored \"-Wreserved-id-macro\"\n\
#define __device__ __attribute__((device))\n\
#define __host__ __attribute__((host))\n\
#define __global__ __attribute__((global))\n\
#define __constant__ __attribute__((constant))\n\
@@ -42,6 +44,7 @@ function(get_hiprtc_macros HIPRTC_DEFINES)
#define select_impl_(_1, _2, impl_, ...) impl_\n\
#define __launch_bounds__(...) \\\n\
select_impl_(__VA_ARGS__, launch_bounds_impl1, launch_bounds_impl0)(__VA_ARGS__) \n\
#pragma clang diagnostic pop\n\
#define HIP_INCLUDE_HIP_HIP_RUNTIME_H"
PARENT_SCOPE)
endfunction(get_hiprtc_macros)