This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C PATCH] Warn about variadic main (PR c/60156)


On Fri, 25 Apr 2014, Marek Polacek wrote:

> On Thu, Apr 24, 2014 at 03:11:15PM -0600, Jeff Law wrote:
> > OK.  Though in practice I doubt this is going to catch many real
> > bugs. Are people still giving main a stdargs style signature?
> 
> I doubt too, it's more a matter of QOI.  I've actually never seen
> main (int, ...).  But it seemed wrong to not to warn on that.
> Thanks,

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).

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]