Disable -Wformat-truncation in snprintf_test.cpp

This commit is contained in:
Peter Dimov
2024-01-17 04:58:04 +02:00
parent 00fb79f174
commit e368c2863d

View File

@ -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 <boost/system/detail/snprintf.hpp>
#include <boost/core/lightweight_test.hpp>