From 60f74f3cb3c95e9d1c6408b80a489d422cf945e6 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 1 Jul 2023 18:20:22 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Suppress=20truncation=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/core/mstring.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/src/core/mstring.h b/Marlin/src/core/mstring.h index bdfc95f9dcd..f78ba601b16 100644 --- a/Marlin/src/core/mstring.h +++ b/Marlin/src/core/mstring.h @@ -73,6 +73,10 @@ extern void SERIAL_CHAR(char c); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#if DISABLED(UNSAFE_MSTRING) + #pragma GCC diagnostic ignored "-Wstringop-truncation" +#endif + /** * @brief MString class template * @details A class template providing convenient string operators,