Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19ce4b6

Browse files
committed
SYCL: Add pragma directive to suppress warning spam
1 parent 5ed4403 commit 19ce4b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-sycl/common.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626

2727
#define GGML_COMMON_DECL_SYCL
2828
#define GGML_COMMON_IMPL_SYCL
29+
/* suppress warning spam */
30+
#pragma clang diagnostic push
31+
#pragma clang diagnostic ignored "-Wnested-anon-types"
2932
#include "ggml-common.h"
33+
#pragma clang diagnostic pop
3034

3135
void* ggml_sycl_host_malloc(size_t size);
3236
void ggml_sycl_host_free(void* ptr);

0 commit comments

Comments
 (0)