From 9687ef1bd957cca80b363cdbe07ceea18873d48c Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Thu, 9 Apr 2026 21:24:30 +0200 Subject: [PATCH] ci: Tolerate unused free functions in intermediate commits When bigger changes are split across multiple commits, intermediate commits may introduce unused functions. Do not check for this error in intermediate commits. --- .github/ci-test-each-commit-exec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ci-test-each-commit-exec.py b/.github/ci-test-each-commit-exec.py index aed1526b643..402e73527be 100755 --- a/.github/ci-test-each-commit-exec.py +++ b/.github/ci-test-each-commit-exec.py @@ -40,8 +40,8 @@ def main(): "-DCMAKE_BUILD_TYPE=Debug", "-DCMAKE_COMPILE_WARNING_AS_ERROR=ON", "--preset=dev-mode", - # Tolerate unused member functions in intermediate commits in a pull request - "-DCMAKE_CXX_FLAGS=-Wno-error=unused-member-function", + # Tolerate unused (member) functions in intermediate commits in a pull request + "-DCMAKE_CXX_FLAGS=-Wno-error=unused-member-function -Wno-error=unused-function", ]) if run(["cmake", "--build", build_dir, "-j", str(num_procs)], check=False).returncode != 0: