aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-04-11 23:40:15 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2024-04-13 01:35:20 -0400
commitf1c0f42cddd344d6ac56569decb42eab2dfc07e5 (patch)
treeef0f626df3ac7339da7ba6394aecbd5770474874 /test/tests.zig
parent05d9755766e45e454a16440bfc9f98abef992247 (diff)
downloadzig-f1c0f42cddd344d6ac56569decb42eab2dfc07e5.tar.gz
zig-f1c0f42cddd344d6ac56569decb42eab2dfc07e5.zip
cbe: fix optional codegen
Also reduce ctype pool string memory usage, remove self assignments, and enable more warnings.
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig22
1 files changed, 15 insertions, 7 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 5ab5268e31..d18958cfc6 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -1092,9 +1092,17 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
// Tracking issue for making the C backend generate C89 compatible code:
// https://github.com/ziglang/zig/issues/19468
"-std=c99",
- "-pedantic",
"-Werror",
+ "-Wall",
+ "-Wembedded-directive",
+ "-Wempty-translation-unit",
+ "-Wextra",
+ "-Wgnu",
+ "-Winvalid-utf8",
+ "-Wkeyword-macro",
+ "-Woverlength-strings",
+
// Tracking issue for making the C backend generate code
// that does not trigger warnings:
// https://github.com/ziglang/zig/issues/19467
@@ -1103,14 +1111,14 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
"-Wno-builtin-requires-header",
// spotted on linux
- "-Wno-gnu-folding-constant",
- "-Wno-incompatible-function-pointer-types",
- "-Wno-incompatible-pointer-types",
- "-Wno-overlength-strings",
+ "-Wno-braced-scalar-init",
+ "-Wno-excess-initializers",
+ "-Wno-incompatible-pointer-types-discards-qualifiers",
+ "-Wno-unused",
+ "-Wno-unused-parameter",
// spotted on darwin
- "-Wno-dollar-in-identifier-extension",
- "-Wno-absolute-value",
+ "-Wno-incompatible-pointer-types",
},
});
compile_c.addIncludePath(b.path("lib")); // for zig.h