SWDEV-307838 - Push clang diagnostics to be ignored

Change-Id: I7487170b44994079bfe7167b6211489a0c7fef2b
Este cometimento está contido em:
Jatin Chaudhary criou e Maneesh Gupta cometeu 2021-12-03 02:48:34 -05:00
1 ascendente 5b08779b25
cometimento bf28ecb048
1 ficheiro modificado
+4 -1
+4 -1
Ver ficheiro
@@ -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)