changeset 14414:29f8fb6ed4b4

maint.mk: suppress a syntax check false positive * top/maint.mk (sc_unmarked_diagnostics): Don't warn when diagnostics are marked with ngettext.
author Pádraig Brady <P@draigBrady.com>
date Fri, 11 Mar 2011 01:12:56 +0000
parents be956be734e0
children a051be71a31b
files ChangeLog top/maint.mk
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-11  Pádraig Brady <P@draigBrady.com>
+
+	maint.mk: suppress a false positive warning
+	* top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
+	diagnostics are marked with ngettext.
+
 2011-03-10  Eric Blake  <eblake@redhat.com>
 
 	wchar: add explicit dependencies, for Tru64
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -659,7 +659,7 @@
 sc_unmarked_diagnostics:
 	@grep -nE							\
 	    '\<error *\([^"]*"[^"]*[a-z]{3}' $$($(VC_LIST_EXCEPT))	\
-	  | grep -v '_''(' &&						\
+	  | grep -Ev '(_|ngettext )\(' &&				\
 	  { echo '$(ME): found unmarked diagnostic(s)' 1>&2;		\
 	    exit 1; } || :