Skip to content

Commit

Permalink
[SYCL] Silence pedantic warning for #warning directive in `CL/sycl.…
Browse files Browse the repository at this point in the history
…hpp`

Fixes #13592.
  • Loading branch information
aelovikov-intel committed Apr 30, 2024
1 parent a780a8b commit 9683832
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sycl/include/CL/sycl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
#pragma once

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpedantic"
#warning "CL/sycl.hpp is deprecated, use sycl/sycl.hpp"
#pragma clang diagnostic pop
#endif

#include <sycl/sycl.hpp>
Expand Down

0 comments on commit 9683832

Please sign in to comment.