From f1543bdcab2ceb62c2856ccd3e7e51d4fecf72a1 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Tue, 23 Jul 2024 21:49:25 +0200 Subject: [PATCH] test/check-xfunc-usage.sh: allow '__attribute__ ((malloc ())' --- test/check-xfunc-usage.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)