re PR c/68024 (Diagnose variadic functions defined without prototypes)
authorMarek Polacek <polacek@redhat.com>
Wed, 21 Oct 2015 17:30:20 +0000 (17:30 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 21 Oct 2015 17:30:20 +0000 (17:30 +0000)
commite9122ef60858058cb474b3d3bb51507b7fd1d14c
tree4f5c18ed36ede7a92582472a9f43fd6916ea8b86
parent68d58afb65a42cb7886552a1532fc11dc06eaed4
re PR c/68024 (Diagnose variadic functions defined without prototypes)

PR c/68024
* c-decl.c (start_function): Warn about vararg functions without
a prototype.

* gcc.dg/pr68024.c: New test.

From-SVN: r229131
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68024.c [new file with mode: 0644]