Commit 32099228 authored by Vladimir Serbinenko's avatar Vladimir Serbinenko

printf_unit_test: Disable Wformat-truncation on GCC >= 7

We intentionally pass NULL as argument to format, hence disable the warning.
parent ec763ed0
......@@ -23,6 +23,10 @@
#define MSG "printf test failed: %s, %s", real, expected
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic ignored "-Wformat-truncation="
static void
printf_test (void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment