This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] Warn about variadic main (PR c/60156)
- From: Marek Polacek <polacek at redhat dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: Jeff Law <law at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Tue, 6 May 2014 15:17:08 +0200
- Subject: Re: [C PATCH] Warn about variadic main (PR c/60156)
- Authentication-results: sourceware.org; auth=none
- References: <20140212095132 dot GB8907 at redhat dot com> <53597DF3 dot 8090904 at redhat dot com> <20140425070518 dot GN2103 at redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1405012336040 dot 16441 at digraph dot polyomino dot org dot uk>
On Thu, May 01, 2014 at 11:37:58PM +0000, Joseph S. Myers wrote:
> As a matter of QoI we should also diagnose use of _Atomic in the return
> type or argument types of main (something I deferred doing in the initial
> _Atomic support).
Ok, I opened PR61077 and I'm taking it. But I wonder if I should
diagnose if the second parameter is e.g.:
_Atomic char **argv;
char *_Atomic *argv;
My current patch diagnoses only
char **_Atomic argv;
since I'm not looking through the pointers.
Marek