From e368c2863d6393e87450a539978a378caa06b7ff Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 17 Jan 2024 04:58:04 +0200 Subject: [PATCH] Disable -Wformat-truncation in snprintf_test.cpp --- test/snprintf_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/snprintf_test.cpp b/test/snprintf_test.cpp index 02e6f75..4064125 100644 --- a/test/snprintf_test.cpp +++ b/test/snprintf_test.cpp @@ -2,6 +2,10 @@ // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt +#if defined(__GNUC__) && __GNUC__ >= 7 +# pragma GCC diagnostic ignored "-Wformat-truncation" +#endif + #include #include