On 02/12/14 02:51, Marek Polacek wrote:
I figured it might be a good idea to warn about variadic main decl
(well, not in freestanding environment where it's
implementation-defined).

Regtested/bootstrapped on x86_64-linux, ok for 5.0?

2014-02-12  Marek Polacek  <pola...@redhat.com>

        PR c/60156
c-family/
        * c-common.c (check_main_parameter_types): Warn about variadic main.
testsuite/
        * c-c++-common/pr60156.c: New test.
OK. Though in practice I doubt this is going to catch many real bugs. Are people still giving main a stdargs style signature?

jeff

Reply via email to