diff options
author | Richard Henderson <rth@gcc.gnu.org> | 2000-06-26 09:42:23 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-06-26 09:42:23 -0700 |
commit | 903f51d97fc06fde3900a9628872007bf71eecac (patch) | |
tree | 3775b34b16d78fb402deb53f4c3ecccc2f5d7168 /gcc/c-tree.h | |
parent | 774d2baf5040b0a86bb07931e01b4d2811611eab (diff) | |
download | gcc-903f51d97fc06fde3900a9628872007bf71eecac.zip gcc-903f51d97fc06fde3900a9628872007bf71eecac.tar.gz gcc-903f51d97fc06fde3900a9628872007bf71eecac.tar.bz2 |
[multiple changes]
2000-06-26 Joseph S. Myers <jsm28@cam.ac.uk>
* c-decl.c (grokdeclarator): Don't warn about `long long' in C99.
Make warnings about implicit int be pedwarns in C99. Don't warn
about duplicate type qualifiers in C99.
(start_function): Make warning about implict int return type be a
pedwarn in C99.
* c-lex.c (yylex): Don't warn about `long long' in C99.
* c-typeck.c (c_expand_return): In C99, always pedwarn about
`return' with no value in function returning non-void.
2000-06-26 Richard Henderson <rth@cygnus.com>
* c-typeck.c (pedwarn_c99): New.
* diagnostic.c (verror, vwarning, vpedwarn): Export.
* toplev.h: Prototype them.
From-SVN: r34713
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 7c86e26..474aaae 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -297,6 +297,8 @@ extern void c_expand_asm_operands PARAMS ((tree, tree, tree, const char *, int)); extern void c_expand_return PARAMS ((tree)); extern tree c_expand_start_case PARAMS ((tree)); +extern void pedwarn_c99 PARAMS ((const char *, ...)) + ATTRIBUTE_PRINTF_1; /* in c-iterate.c */ extern void init_iterators PARAMS ((void)); |