changeset 16299:1e8c74a6b668

maint: enable sc_prohibit_hash_pjw_without_use * cfg.mk: Enable sc_prohibit_hash_pjw_without_use. * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp to match any use of \<hash_pjw\>, i.e., not necessarily with a following " (".
author Jim Meyering <meyering@redhat.com>
date Tue, 17 Jan 2012 18:10:01 +0100
parents 934e44e9f2a5
children 6d8330e7c259
files ChangeLog cfg.mk top/maint.mk
diffstat 3 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-01-17  Jim Meyering  <meyering@redhat.com>
+
+	maint: enable sc_prohibit_hash_pjw_without_use
+	* cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
+	* top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
+	to match any use of \<hash_pjw\>, i.e., not necessarily with a
+	following " (".
+
 2012-01-17  Jim Meyering  <meyering@redhat.com>
 
 	maint: enable double-word-prohibiting rule
--- a/cfg.mk
+++ b/cfg.mk
@@ -27,7 +27,6 @@
   sc_prohibit_dirent_without_use	\
   sc_prohibit_error_without_use		\
   sc_prohibit_getopt_without_use	\
-  sc_prohibit_hash_pjw_without_use	\
   sc_prohibit_have_config_h		\
   sc_prohibit_intprops_without_use	\
   sc_prohibit_inttostr_without_use	\
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -502,7 +502,7 @@
 
 sc_prohibit_hash_pjw_without_use:
 	@h='hash-pjw.h' \
-	re='\<hash_pjw *\(' \
+	re='\<hash_pjw\>' \
 	  $(_sc_header_without_use)
 
 sc_prohibit_safe_read_without_use: