Remove "-Wno-over-aligned" from x86 Android builds

We now build without requiring disabling this warning. Came up in
https://android-review.googlesource.com/498211

Bug: b/66996870
Change-Id: Ife596240507b3c055d2fabd08330828f8a5dbb9c
Reviewed-on: https://skia-review.googlesource.com/60530
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Leon Scroggins <scroggo@google.com>
This commit is contained in:
Leon Scroggins III 2017-10-17 15:27:12 -04:00 committed by Skia Commit-Bot
parent 119f6c85c1
commit 53418dbb6a

View File

@ -308,9 +308,8 @@ config("warnings") {
"-Wno-unknown-warning-option", # Let older Clangs ignore newer Clangs' warnings.
]
if ((target_cpu == "x86" && is_android) ||
(target_cpu == "arm" && is_ios)) {
# Clang seems to think new/malloc will only be 4-byte aligned on x86 Android and 32-bit iOS.
if (target_cpu == "arm" && is_ios) {
# Clang seems to think new/malloc will only be 4-byte aligned on 32-bit iOS.
# We're pretty sure it's actually 8-byte alignment.
cflags += [ "-Wno-over-aligned" ]
}