mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 17:43:17 +00:00
disable all C warnings when building musl
This commit is contained in:
parent
3c36929603
commit
9801a1df6a
@ -581,15 +581,8 @@ static const char *build_musl(CodeGen *parent) {
|
||||
CFile *c_file = allocate<CFile>(1);
|
||||
c_file->source_path = buf_ptr(full_path);
|
||||
musl_add_cc_args(parent, c_file);
|
||||
c_file->args.append("-Wno-ignored-attributes");
|
||||
c_file->args.append("-Wno-bitwise-op-parentheses");
|
||||
c_file->args.append("-Wno-logical-op-parentheses");
|
||||
c_file->args.append("-Wno-dangling-else");
|
||||
c_file->args.append("-Wno-shift-op-parentheses");
|
||||
c_file->args.append("-Qunused-arguments");
|
||||
c_file->args.append("-Wno-unknown-pragmas");
|
||||
c_file->args.append("-Wno-string-plus-int");
|
||||
c_file->args.append("-Wno-parentheses");
|
||||
c_file->args.append("-w"); // disable all warnings
|
||||
if (src_kind == MuslSrcO3) {
|
||||
c_file->args.append("-O3");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user