printf_unit_test: Disable Wformat-truncation on GCC >= 7

We intentionally pass NULL as argument to format, hence disable the warning.
This commit is contained in:
Vladimir Serbinenko 2017-08-30 16:59:25 +02:00 committed by Vincent Batts
parent 69c4c683b4
commit 621f536e94

View file

@ -23,6 +23,10 @@
#define MSG "printf test failed: %s, %s", real, expected
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic ignored "-Wformat-truncation="
#endif
static void
printf_test (void)
{