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:
parent
ec763ed00a
commit
32099228e6
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue