Skip to content

Commit 88784b3

Browse files
author
Sergey Kanaev
committed
[SYCL] [NFC] Eliminate worning
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 8f43cee commit 88784b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/__spirv/spirv_vars.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern "C" const __attribute__((opencl_constant)) size_t_vec __spirv_BuiltInWork
2020
extern "C" const __attribute__((opencl_constant)) size_t_vec __spirv_BuiltInGlobalOffset;
2121

2222
#define DEFINE_INT_ID_TO_XYZ_CONVERTER(POSTFIX) \
23-
template <int ID> static size_t get##POSTFIX(); \
23+
template <int ID> static inline size_t get##POSTFIX(); \
2424
template <> size_t get##POSTFIX<0>() { return __spirv_BuiltIn##POSTFIX.x; } \
2525
template <> size_t get##POSTFIX<1>() { return __spirv_BuiltIn##POSTFIX.y; } \
2626
template <> size_t get##POSTFIX<2>() { return __spirv_BuiltIn##POSTFIX.z; }

0 commit comments

Comments
 (0)