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
parent ec763ed00a
commit 32099228e6

View file

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