Skip to content

Commit 9683832

Browse files
[SYCL] Silence pedantic warning for #warning directive in CL/sycl.hpp
Fixes #13592.
1 parent a780a8b commit 9683832

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl/include/CL/sycl.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
#pragma once
1010

1111
#if defined(__clang__)
12+
#pragma clang diagnostic push
13+
#pragma clang diagnostic ignored "-Wpedantic"
1214
#warning "CL/sycl.hpp is deprecated, use sycl/sycl.hpp"
15+
#pragma clang diagnostic pop
1316
#endif
1417

1518
#include <sycl/sycl.hpp>

0 commit comments

Comments
 (0)