authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-15 02:02:51+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-15 02:02:51+02:00
log575e21c61a9257c5b0134f85c1bf849fb168c78e
treef3f1611645958cad98ded0be4d9378f80ef223fb
parent9115aee6d75970310e512dc1789373533eb33ae4
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

mingw: disable all warnings


1 files changed, 1 insertions(+), 2 deletions(-)

src/libs/mingw.zig+1-2
...@@ -135,8 +135,6 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre...@@ -135,8 +135,6 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
135 try addCcArgs(comp, arena, &winpthreads_args);135 try addCcArgs(comp, arena, &winpthreads_args);
136 try winpthreads_args.appendSlice(&[_][]const u8{136 try winpthreads_args.appendSlice(&[_][]const u8{
137 "-DIN_WINPTHREAD",137 "-DIN_WINPTHREAD",
138 // winpthreads incorrectly assumes that Clang has `-Wprio-ctor-dtor`.
139 "-Wno-unknown-warning-option",
140 });138 });
141139
142 switch (comp.compilerRtOptMode()) {140 switch (comp.compilerRtOptMode()) {
...@@ -170,6 +168,7 @@ fn addCcArgs(...@@ -170,6 +168,7 @@ fn addCcArgs(
170 args: *std.array_list.Managed([]const u8),168 args: *std.array_list.Managed([]const u8),
171) error{OutOfMemory}!void {169) error{OutOfMemory}!void {
172 try args.appendSlice(&[_][]const u8{170 try args.appendSlice(&[_][]const u8{
171 "-w", // Disable all warnings.
173 "-std=gnu11",172 "-std=gnu11",
174 "-D__USE_MINGW_ANSI_STDIO=0",173 "-D__USE_MINGW_ANSI_STDIO=0",
175174