projects
/
grub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
printf_unit_test: Disable Wformat-truncation on GCC >= 7
[grub.git]
/
tests
/
printf_unit_test.c
diff --git
a/tests/printf_unit_test.c
b/tests/printf_unit_test.c
index
d7b12c6
..
098c29f
100644
(file)
--- a/
tests/printf_unit_test.c
+++ b/
tests/printf_unit_test.c
@@
-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)
{