diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-01-02 10:58:16 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-01-02 10:58:16 -0500 |
commit | 6d1c15cc4c8e5d030444e8c78a05aaa00dd510a1 (patch) | |
tree | 02eca1439a5c36e23ae8710a6005b10be7cda5b0 /gcc/c-decl.c | |
parent | 976b230df964cc16d008db5ad9bd6bed388294bc (diff) | |
download | gcc-6d1c15cc4c8e5d030444e8c78a05aaa00dd510a1.zip gcc-6d1c15cc4c8e5d030444e8c78a05aaa00dd510a1.tar.gz gcc-6d1c15cc4c8e5d030444e8c78a05aaa00dd510a1.tar.bz2 |
* c-decl.c (start_function): Don't warn on third parameter to main.
From-SVN: r38625
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index d4b3a2a..0521aa7 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6049,14 +6049,11 @@ start_function (declspecs, declarator, prefix_attributes, attributes) } /* It is intentional that this message does not mention the third - argument, which is warned for only pedantically, because it's - blessed by mention in an appendix of the standard. */ + argument because it's only mentioned in an appendix of the + standard. */ if (argct > 0 && (argct < 2 || argct > 3)) pedwarn_with_decl (decl1, "`%s' takes only zero or two arguments"); - if (argct == 3 && pedantic) - pedwarn_with_decl (decl1, "third argument of `%s' is deprecated"); - if (! TREE_PUBLIC (decl1)) pedwarn_with_decl (decl1, "`%s' is normally a non-static function"); } |