From 19ce4b64b75cbbcb9c2b7b88d7d4a07c56a82551 Mon Sep 17 00:00:00 2001 From: Akarshan Biswas Date: Sun, 15 Dec 2024 21:02:43 +0530 Subject: [PATCH] SYCL: Add pragma directive to suppress warning spam --- ggml/src/ggml-sycl/common.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ggml/src/ggml-sycl/common.hpp b/ggml/src/ggml-sycl/common.hpp index c1582f610..62b4cea3a 100644 --- a/ggml/src/ggml-sycl/common.hpp +++ b/ggml/src/ggml-sycl/common.hpp @@ -26,7 +26,11 @@ #define GGML_COMMON_DECL_SYCL #define GGML_COMMON_IMPL_SYCL +/* suppress warning spam */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnested-anon-types" #include "ggml-common.h" +#pragma clang diagnostic pop void* ggml_sycl_host_malloc(size_t size); void ggml_sycl_host_free(void* ptr);