From 66f8bcd4b9060a792ee545967c093701f3199e77 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 02e6f7594..c0fcf653b 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__) +# pragma GCC diagnostic ignored "-Wformat-truncation" +#endif + #include #include