diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/flags.mk | 3 | ||||
-rw-r--r-- | build/flags/missing-var-decls.c | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/build/flags.mk b/build/flags.mk index 95d5673..5c28c3f 100644 --- a/build/flags.mk +++ b/build/flags.mk @@ -105,7 +105,8 @@ include build/exports.mk # Conditionally-supported flags AUTO_FLAGS := \ - gen/flags/deps.mk + gen/flags/deps.mk \ + gen/flags/missing-var-decls.mk gen/flags.mk: ${AUTO_FLAGS} ${MSG} "[ GEN] $@" diff --git a/build/flags/missing-var-decls.c b/build/flags/missing-var-decls.c new file mode 100644 index 0000000..5c20cc6 --- /dev/null +++ b/build/flags/missing-var-decls.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +/// _CFLAGS += -Wmissing-variable-declarations +/// -Werror + +int main(void) { + return 0; +} |