From 04ac86837cd621ec89a88a538fe20ac2c38ad5dd Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 30 Apr 2026 18:52:05 +0300 Subject: [PATCH] Disable -Wformat-truncation in error_category_test(2).cpp under GCC 16 --- test/error_category_test.cpp | 4 ++++ test/error_category_test2.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/error_category_test.cpp b/test/error_category_test.cpp index 16154c8..a49cb51 100644 --- a/test/error_category_test.cpp +++ b/test/error_category_test.cpp @@ -8,6 +8,10 @@ // See library home page at http://www.boost.org/libs/system +#if defined(__GNUC__) && __GNUC__ >= 16 +# pragma GCC diagnostic ignored "-Wformat-truncation" +#endif + #include #include #include diff --git a/test/error_category_test2.cpp b/test/error_category_test2.cpp index 2a9644f..c3897e0 100644 --- a/test/error_category_test2.cpp +++ b/test/error_category_test2.cpp @@ -8,6 +8,10 @@ // See library home page at http://www.boost.org/libs/system +#if defined(__GNUC__) && __GNUC__ >= 16 +# pragma GCC diagnostic ignored "-Wformat-truncation" +#endif + #include #include #include