diff --git a/test/check-xfunc-usage.sh b/test/check-xfunc-usage.sh index 1e35002a0..7d42ded65 100755 --- a/test/check-xfunc-usage.sh +++ b/test/check-xfunc-usage.sh @@ -7,7 +7,8 @@ ebegin "Checking for x* func usage" out=$(cd ${top_srcdir}; find src -name '*.[ch]' \ ! -name queue.h \ -exec grep -n -E '\<(malloc|strdup)[[:space:]]*\(' {} + \ - | grep -v \ + | grep -v -E \ + -e '__attribute__[[:space:]]*\(\(malloc' \ -e src/shared/helpers.h \ -e src/libeinfo/libeinfo.c)