GCC can check/error for this with --pedantic -Werror On Wed, Jul 2, 2014 at 12:58 PM, Jonathan Nieder <jrnieder@xxxxxxxxx> wrote: > Ronnie Sahlberg wrote: > >> Signed-off-by: Ronnie Sahlberg <sahlberg@xxxxxxxxxx> >> --- >> builtin/clean.c | 2 +- >> builtin/tag.c | 2 +- >> pretty.c | 2 +- >> 3 files changed, 3 insertions(+), 3 deletions(-) > > Is there some gcc option or other tool that can automatically detect > this kind of problem so the regress/fix cycle doesn't have to repeat > too many times? > > Looks like v1.7.2-rc0~32^2~16 (2010-03-14) and v1.7.4.2~34 (2011-03-16) > tried to fix this in the past. > > Using the test from v1.7.4.2~34 also finds enums with trailing comma > in > > grep.h > log-tree.c > > Thanks, > Jonathan -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html