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 Apr 28, 2021
1 parent 60598f8 commit a4d4181
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 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 @@ -159,6 +158,9 @@ config("disabled_warnings") {
"-Wno-cast-function-type",
]
}
else {
cflags += [ "-Wno-unknown-warning-option" ]
}
}

config("strict_warnings") {
Expand Down

0 comments on commit a4d4181

Please sign in to comment.