* c-decl.c (start_function): Don't warn on third parameter to main.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Tue, 2 Jan 2001 15:58:16 +0000 (10:58 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 2 Jan 2001 15:58:16 +0000 (10:58 -0500)
From-SVN: r38625

gcc/ChangeLog
gcc/c-decl.c

index f219ae007d8e4e82e0fcae7b64f74c44ba024c65..7fc64a33183c69367ae80b0c75ecea0a5b5cfd2a 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan  2 10:47:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
+
+       * c-decl.c (start_function): Don't warn on third parameter to main.
+
 2001-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * tsystem.h: Define HAVE_DECL_GETOPT.
index d4b3a2a62a97103b4321ea3b5fa1655b4ea22ef7..0521aa779361f7d7c72b088ef495cb54477e2337 100644 (file)
@@ -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");
     }