gout

A static git page generator
git clone https://git.bracken.jp/gout.git
Log | Files | Refs | README | LICENSE

commit 84a50ea1e2ec28ad1ca49d47cc511edf7cbc3e88
parent 6b8fbb84cba77dc80811dad051b1c4c810ae1406
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri, 20 Feb 2026 12:15:38 +0900

build: disable unused parameter warnings for tests

These don't add much value in tests and utest fixture macros pass in a
bunch that we don't use.

Diffstat:
MBUILD.gn | 1+
Mbuild/BUILD.gn | 7+++++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/BUILD.gn b/BUILD.gn @@ -76,6 +76,7 @@ executable("gout_tests") { configs += [ ":gout_config", ":gout_test_config", + "//build:test_warnings", ] deps = [ "//src:gout_srcs", diff --git a/build/BUILD.gn b/build/BUILD.gn @@ -23,6 +23,13 @@ config("strict_prototypes") { ] } +# Test-specific warnings (relaxed for test fixtures). +config("test_warnings") { + cflags = [ + "-Wno-unused-parameter", + ] +} + # Debug mode build. config("debug") { defines = [ "_DEBUG" ]