re PR c/60156 (GCC doesn't warn about variadic main)
authorMarek Polacek <polacek@redhat.com>
Fri, 25 Apr 2014 08:22:47 +0000 (08:22 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 25 Apr 2014 08:22:47 +0000 (08:22 +0000)
commit38e514c017e1ce7dfe9af7e81d104deb1a9f5a1a
tree967dd3337f7d3cada265120a5b421177e26f1f5d
parente4012a04cddf147ef36a4b8d06f4f2c20571b3da
re PR c/60156 (GCC doesn't warn about variadic main)

PR c/60156
* c-common.c (check_main_parameter_types): Warn about variadic main.

* c-c++-common/pr60156.c: New test.

From-SVN: r209787
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr60156.c [new file with mode: 0644]