From 6d1c15cc4c8e5d030444e8c78a05aaa00dd510a1 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 2 Jan 2001 10:58:16 -0500 Subject: [PATCH] * c-decl.c (start_function): Don't warn on third parameter to main. From-SVN: r38625 --- gcc/ChangeLog | 4 ++++ gcc/c-decl.c | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f219ae007d8..7fc64a33183 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Jan 2 10:47:38 2001 Richard Kenner * tsystem.h: Define HAVE_DECL_GETOPT. diff --git a/gcc/c-decl.c b/gcc/c-decl.c index d4b3a2a62a9..0521aa77936 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"); } -- 2.30.2