Skip to content

Commit cbaef17

Browse files
[[deprecated]] is part of C23 standard, it is supported in gcc version 10 and older
1 parent cf1e00f commit cbaef17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsyclinterface/include/dpctl_sycl_device_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ DPCTLDevice_GetMaxWorkItemSizes3d(__dpctl_keep const DPCTLSyclDeviceRef DRef);
250250
* @return Returns the valid result if device exists else returns NULL.
251251
* @ingroup DeviceInterface
252252
*/
253-
#if __cplusplus
253+
#if __cplusplus || (defined(__GNUC__) && __GNUC__ > 10)
254254
[[deprecated("Use DPCTLDevice_WorkItemSizes3d instead")]]
255255
#endif
256256
DPCTL_API __dpctl_keep size_t *

0 commit comments

Comments
 (0)