Skip to content

Commit

Permalink
Gcc errors out with "error: unrecognized command line option -Wno-unk…
Browse files Browse the repository at this point in the history
…nown-warning-option"
  • Loading branch information
andreilitvin committed Jun 6, 2023
1 parent c112b01 commit df437c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,17 @@ config("disabled_warnings") {
cflags = [
"-Wno-deprecated-declarations",
"-Wno-missing-field-initializers",
"-Wno-unknown-warning-option",
"-Wno-unused-parameter",
]
if (!is_debug) {
# assert() causes unused variable warnings in release.
cflags += [ "-Wno-unused" ]
}
if (!is_clang) {
if (is_clang) {
cflags += [
"-Wno-unknown-warning-option",
]
} else {
cflags += [
"-Wno-cast-function-type",
"-Wno-psabi",
Expand Down

0 comments on commit df437c8

Please sign in to comment.