| ... | ... | @@ -32,9 +32,6 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: std.Progre |
| 32 | 32 | .crti_o => { |
| 33 | 33 | var args = std.ArrayList([]const u8).init(arena); |
| 34 | 34 | try addCcArgs(comp, arena, &args, false); |
| 35 | | try args.appendSlice(&[_][]const u8{ |
| 36 | | "-Qunused-arguments", |
| 37 | | }); |
| 38 | 35 | var files = [_]Compilation.CSourceFile{ |
| 39 | 36 | .{ |
| 40 | 37 | .src_path = try start_asm_path(comp, arena, "crti.s"), |
| ... | ... | @@ -47,9 +44,6 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: std.Progre |
| 47 | 44 | .crtn_o => { |
| 48 | 45 | var args = std.ArrayList([]const u8).init(arena); |
| 49 | 46 | try addCcArgs(comp, arena, &args, false); |
| 50 | | try args.appendSlice(&[_][]const u8{ |
| 51 | | "-Qunused-arguments", |
| 52 | | }); |
| 53 | 47 | var files = [_]Compilation.CSourceFile{ |
| 54 | 48 | .{ |
| 55 | 49 | .src_path = try start_asm_path(comp, arena, "crtn.s"), |
| ... | ... | @@ -189,10 +183,6 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: std.Progre |
| 189 | 183 | |
| 190 | 184 | var args = std.ArrayList([]const u8).init(arena); |
| 191 | 185 | try addCcArgs(comp, arena, &args, ext == .o3); |
| 192 | | try args.appendSlice(&[_][]const u8{ |
| 193 | | "-Qunused-arguments", |
| 194 | | "-w", // disable all warnings |
| 195 | | }); |
| 196 | 186 | const c_source_file = try c_source_files.addOne(); |
| 197 | 187 | c_source_file.* = .{ |
| 198 | 188 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libc", src_file }), |
| ... | ... | @@ -427,6 +417,9 @@ fn addCcArgs( |
| 427 | 417 | "-fno-asynchronous-unwind-tables", |
| 428 | 418 | "-ffunction-sections", |
| 429 | 419 | "-fdata-sections", |
| 420 | |
| 421 | "-Qunused-arguments", |
| 422 | "-w", // disable all warnings |
| 430 | 423 | }); |
| 431 | 424 | } |
| 432 | 425 | |