test/check-xfunc-usage.sh: allow '__attribute__ ((malloc ())'

This commit is contained in:
Anna (navi) Figueiredo Gomes 2024-07-23 21:49:25 +02:00 committed by William Hubbs
parent ca1901ea70
commit f1543bdcab
1 changed files with 2 additions and 1 deletions

View File

@ -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)