summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-11-12 18:41:01 +0100
committerJim Meyering <jim@meyering.net>2006-11-12 18:41:01 +0100
commit75be540f7d903ceea4dc527312c748aed2d62c73 (patch)
treeeed46d5b4ec1255ae1844a13783003e55797e2b4
parent28c7ef509e56e5fc1619afcdcf2fc3243bf2da36 (diff)
downloadcoreutils-75be540f7d903ceea4dc527312c748aed2d62c73.tar.xz
* Makefile.maint (sc_cast_of_x_alloc_return_value): Add an exclusion
for xalloc.h itself.
-rw-r--r--ChangeLog3
-rw-r--r--Makefile.maint3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bc5797f8f..0e1aee670 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2006-11-12 Jim Meyering <jim@meyering.net>
+ * Makefile.maint (sc_cast_of_x_alloc_return_value): Add an exclusion
+ for xalloc.h itself.
+
Avoid false-positive when testing via valgrind.
* tests/mv/atomic: Grep strace output for a more specific pattern
than just "unlink", since that got a false positive when testing
diff --git a/Makefile.maint b/Makefile.maint
index d89e0d6e8..d73503881 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -102,7 +102,8 @@ sc_cast_of_argument_to_free:
exit 1; } || :
sc_cast_of_x_alloc_return_value:
- @grep -nE --exclude=$(srcdir)/lib/regex.c \
+ @grep -nE --exclude=$(srcdir)/lib/xalloc.h \
+ --exclude=$(srcdir)/lib/regex.c \
'\*\) *x(m|c|re)alloc\>' \
$(srcdir)/{lib,src}/*.[chy] && \
{ echo '$(ME): don'\''t cast x*alloc return value' 1>&2; \