diff options
author | Jim Meyering <meyering@redhat.com> | 2012-09-17 11:25:00 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-09-18 08:51:10 +0200 |
commit | db75e39b38fb197b956f6866ad167bdf7121a660 (patch) | |
tree | ca8fecaf19b66b55d68042955f113b232d503a87 /top/maint.mk | |
parent | 0cd711b27ba11019c96314a42e197bc288f415d7 (diff) | |
download | gnulib-db75e39b38fb197b956f6866ad167bdf7121a660.tar.gz |
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
Diffstat (limited to 'top/maint.mk')
-rw-r--r-- | top/maint.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk index 4627bc5369..09f55c5097 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -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) |