maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
authorJim Meyering <meyering@redhat.com>
Mon, 17 Sep 2012 09:25:00 +0000 (11:25 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 18 Sep 2012 06:51:10 +0000 (08:51 +0200)
* top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
all uses of #define, not just those that start in column 1.
Richard W.M. Jones reported a false positive in
http://thread.gmane.org/gmane.comp.emulators.guestfs/1902

ChangeLog
top/maint.mk

index 5425df4..1279ad3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-09-17  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
+       * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
+       all uses of #define, not just those that start in column 1.
+       Richard W.M. Jones reported a false positive in
+       http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
+
 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
 
        localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
index 4627bc5..09f55c5 100644 (file)
@@ -330,7 +330,7 @@ sc_prohibit_atoi_atof:
 sp_ = strcmp *\(.+\)
 sc_prohibit_strcmp:
        @prohibit='! *strcmp *\(|\<$(sp_) *[!=]=|[!=]= *$(sp_)'         \
-       exclude=':# *define STRN?EQ\('                                  \
+       exclude='# *define STRN?EQ\('                                   \
        halt='replace strcmp calls above with STREQ/STRNEQ'             \
          $(_sc_search_regexp)