[PATCH] D16533: Bug 20796 - GCC's -Wstrict-prototypes warning not implemented in Clang

2016-01-25 Thread Paul Titei via cfe-commits
ptitei created this revision. ptitei added a reviewer: cfe-commits. Implementation for C only warning -Wstrict-prototypes. Function declarations which have no parameters specified are diagnosed and also K&R function definitions with more than 0 parameters which are not preceded by previous prot

RE: [PATCH] D16533: Bug 20796 - GCC's -Wstrict-prototypes warning not implemented in Clang

2016-01-25 Thread Paul Titei via cfe-commits
Thanks for the fast review. > On Mon, Jan 25, 2016 at 03:18:31PM +0000, Paul Titei via cfe-commits wrote: > > +// function definition with 0 params(for both cases), valid according > > +to 6.7.5.3/14 void foo1() {} > I still want to get a warning for this. At best it is inco