]> Savannah Git Hosting - gnulib.git/commit
maintainer-makefile: add syntax check for useless ';;'
authorEric Blake <eblake@redhat.com>
Thu, 4 Sep 2014 19:11:04 +0000 (13:11 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 4 Sep 2014 23:51:06 +0000 (17:51 -0600)
commit5be8d47e025293fc079ba15cd6a3f7a0a6f5790c
tree56244bc157c0149411427a1e1838d516f0d7f62e
parentc76f7ed9b7805797a628727d10dcc2ada9c3bdfc
maintainer-makefile: add syntax check for useless ';;'

Most instances of ;; in C code are mistakes, where the second
semicolon is a no-op.  This rule tries to make it easy to flag
the typos occuring at the end of a statement.  It intentionally
does not flag for(;;) loops, and misses grammar problems in
comments if the problem occurs in the middle of the line.

Shell files (including configure.ac and Makefile.am, which can
contain shell snippets) are too likely to use case statements
where ;; is legitimate, so those are not scanned.

* top/maint.mk (sc_prohibit_double_semicolon): New rule.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
top/maint.mk