Skip to content

Commit

Permalink
test/check-xfunc-usage.sh: allow '__attribute__ ((malloc ())'
Browse files Browse the repository at this point in the history
  • Loading branch information
navi-desu authored and williamh committed Jul 23, 2024
1 parent ca1901e commit f1543bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/check-xfunc-usage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f1543bd

Please sign in to comment.