From 4f937ea1f0174a8dbb5ff9017e23ba44718a5db0 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 29 Jul 2019 14:09:50 +0930 Subject: [PATCH] fixup! FreeBSD: fix build. --- tools/mockup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/mockup.sh b/tools/mockup.sh index b4c0a1ebf..ef66fa0de 100755 --- a/tools/mockup.sh +++ b/tools/mockup.sh @@ -20,6 +20,8 @@ for SYMBOL; do # has notleak_ as a declaration, and then an inline). WHERE=$(grep -nH "^[a-zA-Z0-9_ (),]* [*]*$SYMBOL(" ./*/*.h | head -n1) if [ x"$WHERE" != x ]; then + # \n on RHS is a GNU extension, and we want to work on FreeBSD + # shellcheck disable=SC1004 STUB='\ { fprintf(stderr, "'$SYMBOL' called!\\n"); abort(); }' else