This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/6321] no warning for bad main function declaration
- From: "mueller at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2006 23:15:52 -0000
- Subject: [Bug c++/6321] no warning for bad main function declaration
- References: <bug-6321-3047@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from mueller at gcc dot gnu dot org 2006-10-30 23:15 -------
Subject: Bug 6321
Author: mueller
Date: Mon Oct 30 23:15:42 2006
New Revision: 118206
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118206
Log:
2006-10-30 Dirk Mueller <dmueller@suse.de>
PR c++/6321
* cp/decl.c (grokfndecl): Use check_main_parameter_types.
* c-common.h (strict_aliasing_warning): Fix whitespace.
* c-decl (start_function): Move code for main decl warning ..
* c-common.c (check_main_parameter_types): .. here.
* c-common.h (check_main_parameter_types): Declare.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-common.h
trunk/gcc/c-decl.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6321