From f43b27955c8481056c36a99ea05f7d5523169e49 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 12 Feb 2001 17:31:42 +0000 Subject: c-decl.c (grokdeclarator): In C99 mode... * c-decl.c (grokdeclarator): In C99 mode, give the more specific "return type defaults" warning for functions with return type defaulting to int. * c-lang.c (c_init): In C99 mode, enable warnings for implicit function declarations by default rather than only when pedantic. testsuite: * gcc.dg/c99-impl-int-1.c: Use stricter error string for implicit return type. * gcc.dg/cpp/digraphs.c: Declare puts. From-SVN: r39608 --- gcc/testsuite/gcc.dg/cpp/digraphs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/testsuite/gcc.dg/cpp/digraphs.c') diff --git a/gcc/testsuite/gcc.dg/cpp/digraphs.c b/gcc/testsuite/gcc.dg/cpp/digraphs.c index e4ae0e0..49a1bcd 100644 --- a/gcc/testsuite/gcc.dg/cpp/digraphs.c +++ b/gcc/testsuite/gcc.dg/cpp/digraphs.c @@ -8,6 +8,7 @@ extern int strcmp (const char *, const char *); extern void abort (void); +extern int puts (const char *); #define err(str) do { puts(str); abort(); } while (0) %:define glue(x, y) x %:%: y /* #define glue(x, y) x ## y. */ -- cgit v1.1