]> Savannah Git Hosting - gnulib.git/commitdiff
maint: enable sc_prohibit_hash_pjw_without_use
authorJim Meyering <meyering@redhat.com>
Tue, 17 Jan 2012 17:10:01 +0000 (18:10 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 21 Jan 2012 14:07:02 +0000 (15:07 +0100)
* 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 " (".

ChangeLog
cfg.mk
top/maint.mk

index 75db3b4089fd8ad34b24ceb2dad01da5d680e071..edba6990f637eb67e64ca524d1db17a0f929f2f2 100644 (file)
--- 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
diff --git a/cfg.mk b/cfg.mk
index ab75ffe82acd91df6fa2b594197b05af5e3c5827..05f5ea4fe829c0dab768e1c01a6fe8ea17c859f1 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -27,7 +27,6 @@ local-checks-to-skip =                        \
   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     \
index ad6aac7ed7755d4b1ed3ea1a019782119ce70a09..266865526911e9f9795bde6276ac67a2f79cec28 100644 (file)
@@ -502,7 +502,7 @@ sc_prohibit_same_without_use:
 
 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: