From bd9389ae9f964ee00054b6df4cfbd3a69afb7ded Mon Sep 17 00:00:00 2001 From: astralia Date: Thu, 24 Oct 2024 17:47:43 +0200 Subject: [PATCH] Exclude functions taking no arguments --- sys/lint-assert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/lint-assert.sh b/sys/lint-assert.sh index b875f6ff94749..b3213d5d87ad9 100755 --- a/sys/lint-assert.sh +++ b/sys/lint-assert.sh @@ -1,2 +1,2 @@ #!/bin/sh -git grep -C1 R_API libr | awk '/R_API/ && !/NULL/ {getline nextLine; if (nextLine !~ /R_RETURN/) print $0}' | grep 'c:' +git grep -C1 R_API libr | awk '/R_API/ && !/NULL/ && !/(void)/ {getline nextLine; if (nextLine !~ /R_RETURN/) print $0}' | grep 'c:'