From 78ace9cca8724033961b3d9af8995db8d628324b Mon Sep 17 00:00:00 2001 From: Kyle Mabee <118925087+kmabeeTT@users.noreply.github.com> Date: Wed, 13 Nov 2024 20:09:33 -0500 Subject: [PATCH] Demote Error via -Wzero-length-array in 3 headers exposed by tt-metal uplift (#1146) (#1254) --- runtime/include/tt/runtime/detail/ttmetal.h | 1 + runtime/include/tt/runtime/detail/ttnn.h | 1 + runtime/lib/common/system_desc.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/runtime/include/tt/runtime/detail/ttmetal.h b/runtime/include/tt/runtime/detail/ttmetal.h index 4917daf351..01bb9c86eb 100644 --- a/runtime/include/tt/runtime/detail/ttmetal.h +++ b/runtime/include/tt/runtime/detail/ttmetal.h @@ -38,6 +38,7 @@ #pragma clang diagnostic ignored "-Wunused-but-set-variable" #pragma clang diagnostic ignored "-Wlogical-op-parentheses" #pragma clang diagnostic ignored "-Wundefined-inline" +#pragma clang diagnostic ignored "-Wzero-length-array" #define FMT_HEADER_ONLY #include "distributed/mesh_device.hpp" #include "impl/event/event.hpp" diff --git a/runtime/include/tt/runtime/detail/ttnn.h b/runtime/include/tt/runtime/detail/ttnn.h index 823de41a4b..c027d01585 100644 --- a/runtime/include/tt/runtime/detail/ttnn.h +++ b/runtime/include/tt/runtime/detail/ttnn.h @@ -42,6 +42,7 @@ #pragma clang diagnostic ignored "-Wc99-extensions" #pragma clang diagnostic ignored "-Wc++11-narrowing" #pragma clang diagnostic ignored "-Wdeprecated-declarations" +#pragma clang diagnostic ignored "-Wzero-length-array" #define FMT_HEADER_ONLY #include "distributed/mesh_device.hpp" diff --git a/runtime/lib/common/system_desc.cpp b/runtime/lib/common/system_desc.cpp index 58212a4aaf..1c26965826 100644 --- a/runtime/lib/common/system_desc.cpp +++ b/runtime/lib/common/system_desc.cpp @@ -28,6 +28,7 @@ #pragma clang diagnostic ignored "-Wmismatched-tags" #pragma clang diagnostic ignored "-Wunused-function" #pragma clang diagnostic ignored "-Wunused-local-typedef" +#pragma clang diagnostic ignored "-Wzero-length-array" #define FMT_HEADER_ONLY #include "distributed/mesh_device.hpp" #include "host_api.hpp"