* Makefile.maint (sc_cast_of_x_alloc_return_value): Add an exclusion
authorJim Meyering <jim@meyering.net>
Sun, 12 Nov 2006 17:41:01 +0000 (18:41 +0100)
committerJim Meyering <jim@meyering.net>
Sun, 12 Nov 2006 17:41:01 +0000 (18:41 +0100)
for xalloc.h itself.

ChangeLog
Makefile.maint

index bc5797f8f0261f9dcec45775467eec61c221a80b..0e1aee6706e485f76a546c3bb9a71bf15eeb0dff 100644 (file)
--- 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
index d89e0d6e869f848ab44efddfdf9a7061c4cdfdae..d73503881d88ff2037f00b029a971e8f5e729e71 100644 (file)
@@ -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;      \