Disable -Wformat-truncation for Clang in snprintf_test

This commit is contained in:
Peter Dimov
2024-06-02 19:45:18 +03:00
parent d032ab91fd
commit be5a8ffa80

View File

@ -6,6 +6,12 @@
# pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
#if defined(__clang__) && defined(__has_warning)
# if __has_warning( "-Wformat-truncation" )
# pragma clang diagnostic ignored "-Wformat-truncation"
# endif
#endif
#include <boost/system/detail/snprintf.hpp>
#include <boost/core/lightweight_test.hpp>