Skip to content

Commit

Permalink
[SYCL][JIT] Ignore clang diagnostic on entry point (intel#13491)
Browse files Browse the repository at this point in the history
Deactivate Clang warning for the entry point, as we know the entry point
will be used from C++ code.

Signed-off-by: Lukas Sommer <[email protected]>
  • Loading branch information
sommerlukas authored Apr 19, 2024
1 parent 2df8865 commit 10f12be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sycl-fusion/jit-compiler/include/KernelFusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ class FusionResult {

extern "C" {

#ifdef __clang__
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
#endif // __clang__
FusionResult fuseKernels(View<SYCLKernelInfo> KernelInformation,
const char *FusedKernelName,
View<ParameterIdentity> Identities,
Expand Down

0 comments on commit 10f12be

Please sign in to comment.