diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-09-05 15:07:07 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-09-05 15:07:07 -0400 |
commit | acc27139f66a9792a8a2e710ca5d14b88e6eb726 (patch) | |
tree | 0002760dedd19f83423b7c15f697f7fcb3c9ae73 /build/flags | |
parent | 812ecd1feeb002252dd4d732b395d31c4179afaf (diff) | |
download | bfs-acc27139f66a9792a8a2e710ca5d14b88e6eb726.tar.xz |
build/flags: Use auto-detection for all warning flags
Diffstat (limited to 'build/flags')
-rw-r--r-- | build/flags/Wformat.c | 9 | ||||
-rw-r--r-- | build/flags/Wimplicit-fallthrough.c | 9 | ||||
-rw-r--r-- | build/flags/Wimplicit.c | 9 | ||||
-rw-r--r-- | build/flags/Wmissing-decls.c | 9 | ||||
-rw-r--r-- | build/flags/Wmissing-var-decls.c (renamed from build/flags/missing-var-decls.c) | 0 | ||||
-rw-r--r-- | build/flags/Wshadow.c | 9 | ||||
-rw-r--r-- | build/flags/Wsign-compare.c | 9 | ||||
-rw-r--r-- | build/flags/Wstrict-prototypes.c | 9 |
8 files changed, 63 insertions, 0 deletions
diff --git a/build/flags/Wformat.c b/build/flags/Wformat.c new file mode 100644 index 0000000..287b209 --- /dev/null +++ b/build/flags/Wformat.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +/// _CFLAGS += -Wformat=2 +/// -Werror + +int main(void) { + return 0; +} diff --git a/build/flags/Wimplicit-fallthrough.c b/build/flags/Wimplicit-fallthrough.c new file mode 100644 index 0000000..c32058d --- /dev/null +++ b/build/flags/Wimplicit-fallthrough.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +/// _CFLAGS += -Wimplicit-fallthrough +/// -Werror + +int main(void) { + return 0; +} diff --git a/build/flags/Wimplicit.c b/build/flags/Wimplicit.c new file mode 100644 index 0000000..3ea2b90 --- /dev/null +++ b/build/flags/Wimplicit.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +/// _CFLAGS += -Werror=implicit +/// -Werror + +int main(void) { + return 0; +} diff --git a/build/flags/Wmissing-decls.c b/build/flags/Wmissing-decls.c new file mode 100644 index 0000000..5ef3e96 --- /dev/null +++ b/build/flags/Wmissing-decls.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +/// _CFLAGS += -Wmissing-declarations +/// -Werror + +int main(void) { + return 0; +} diff --git a/build/flags/missing-var-decls.c b/build/flags/Wmissing-var-decls.c index 5c20cc6..5c20cc6 100644 --- a/build/flags/missing-var-decls.c +++ b/build/flags/Wmissing-var-decls.c diff --git a/build/flags/Wshadow.c b/build/flags/Wshadow.c new file mode 100644 index 0000000..28f6ef3 --- /dev/null +++ b/build/flags/Wshadow.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +/// _CFLAGS += -Wshadow +/// -Werror + +int main(void) { + return 0; +} diff --git a/build/flags/Wsign-compare.c b/build/flags/Wsign-compare.c new file mode 100644 index 0000000..f083083 --- /dev/null +++ b/build/flags/Wsign-compare.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +/// _CFLAGS += -Wsign-compare +/// -Werror + +int main(void) { + return 0; +} diff --git a/build/flags/Wstrict-prototypes.c b/build/flags/Wstrict-prototypes.c new file mode 100644 index 0000000..9614bee --- /dev/null +++ b/build/flags/Wstrict-prototypes.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +/// _CFLAGS += -Wstrict-prototypes +/// -Werror + +int main(void) { + return 0; +} |