Skip to content

Commit

Permalink
Restrict -Wno-unknown-warning-option to clang based compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
pan- committed May 5, 2021
1 parent 0c02f05 commit 2551637
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ config("optimize_default") {
config("disabled_warnings") {
cflags = [
"-Wno-deprecated-declarations",
"-Wno-unknown-warning-option",
"-Wno-missing-field-initializers",
"-Wno-unused-parameter",
]
Expand All @@ -158,6 +157,8 @@ config("disabled_warnings") {
"-Wno-psabi",
"-Wno-cast-function-type",
]
} else {
cflags += [ "-Wno-unknown-warning-option" ]
}
}

Expand Down

0 comments on commit 2551637

Please sign in to comment.