Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry pick PR #3183: Remove some temporarily disabled compiler warnings for clang. #3262

Merged
merged 4 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions cobalt/renderer/rasterizer/skia/skia/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ skia_common("skia_library_no_asan") {
sources = skia_effects_imagefilter_sources_no_asan
if (is_clang) {
if (using_old_compiler) {
cflags_cc = [ "-Wno-c++1z-extensions" ]
cflags_cc = [
"-Wno-psabi",
"-Wno-c++1z-extensions",
]
} else {
cflags_cc = [
"-Wno-c++17-extensions",
Expand Down Expand Up @@ -88,7 +91,10 @@ config("skia_library_config_public") {

if (is_clang) {
if (using_old_compiler) {
cflags_cc = [ "-Wno-c++1z-extensions" ]
cflags_cc = [
"-Wno-psabi",
"-Wno-c++1z-extensions",
]
} else {
cflags_cc = [
"-Wno-c++17-extensions",
Expand Down
47 changes: 15 additions & 32 deletions starboard/build/config/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -34,49 +34,32 @@ if (cobalt_pending_clean_up) {
if (is_clang) {
cflags = [
"-Wno-c99-designator",
"-Wno-psabi",
"-Wno-shorten-64-to-32",
"-Wno-unknown-warning-option",
"-Wno-array-parameter",
"-Wno-unknown-attributes",
"-Wno-bitwise-instead-of-logical",
"-Wno-c++20-extensions",
"-Wno-c++98-compat-extra-semi",
"-Wno-delete-non-abstract-non-virtual-dtor",
"-Wno-deprecated-copy",
"-Wno-extra-semi",
"-Wno-deprecated-declarations",
"-Wno-ignored-qualifiers",
"-Wno-implicit-fallthrough",
"-Wno-inconsistent-missing-override",
"-Wno-invalid-noreturn",
"-Wno-macro-redefined",
"-Wno-mismatched-tags",
"-Wno-missing-braces",
"-Wno-null-pointer-subtraction",
"-Wno-pessimizing-move",
"-Wno-reorder-ctor",
"-Wno-self-assign-overloaded",
"-Wno-self-assign",
"-Wno-shadow",
"-Wno-sign-compare",
"-Wno-sometimes-uninitialized",
"-Wno-tautological-unsigned-zero-compare",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code-loop-increment",
"-Wno-unreachable-code-return",
"-Wno-unreachable-code",
"-Wno-unused-but-set-parameter",
"-Wno-unused-but-set-variable",
"-Wno-unused-function",
"-Wno-unused-label",
"-Wno-unused-local-typedef",
"-Wno-unused-private-field",
"-Wno-unused-variable",
"-Wno-unused-command-line-argument",
"-Wno-unused-private-field",
"-Wno-deprecated-declarations",
"-Wno-inconsistent-missing-override",

# Needed for Evergreen, Android, and Stub.
"-Wno-return-type",
"-Wno-shorten-64-to-32",
"-Wno-unknown-attributes",
"-Wno-unused-command-line-argument",
"-Wno-unused-function",
]

if (!using_old_compiler) {
cflags += [
"-Wno-shadow",
"-Wno-unreachable-code-break",
]
}
}
}
}
Expand Down
Loading