diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-19 15:04:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-19 15:04:39 -0400 |
| commit | 9801a1df6a6a55bb98cb4141d7e8f7340f324de2 (patch) | |
| tree | 01627c834b1e0398c041d6123f204d320418898f /src/link.cpp | |
| parent | 3c3692960328b82724560bf81ade0f72b651e969 (diff) | |
| download | zig-9801a1df6a6a55bb98cb4141d7e8f7340f324de2.tar.gz zig-9801a1df6a6a55bb98cb4141d7e8f7340f324de2.zip | |
disable all C warnings when building musl
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/link.cpp b/src/link.cpp index f3abe3e92d..136b87d807 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -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"); } |
