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