aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/format/null-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/format/null-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/format/null-1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/format/null-1.c b/gcc/testsuite/gcc.dg/format/null-1.c
index 63501a39..ed71444 100644
--- a/gcc/testsuite/gcc.dg/format/null-1.c
+++ b/gcc/testsuite/gcc.dg/format/null-1.c
@@ -3,9 +3,10 @@
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -Wformat" } */
+#define DONT_GNU_PROTOTYPE
#include "format.h"
-extern void my_printf (const char *, ...) __attribute__((format(printf,1,2)));
+extern void my_printf (const char *, ...) __attribute__((format(gnu_attr_printf,1,2)));
extern const char *my_format (const char *, const char *)
__attribute__((format_arg(2)));