Commit 79f24110 by Gert Wollny Committed by Commit Bot

build: Add -Wdeprecated-copy to the C++ build flags

Define is_gcc and enable the warning flag if it is true. Signed-off-by: 's avatarGert Wollny <gert.wollny@collabora.com> Bug: angleproject:4486 Change-Id: Ie3271cad5cd7de7b45a48d520eeadfe85e742254 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2690954 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 5b82fa2e
......@@ -157,6 +157,8 @@ config("constructor_and_destructor_warnings") {
config("extra_warnings") {
cflags = []
is_gcc = !is_clang && !is_win
# Avoid failing builds for warnings enabled by Skia build.
if (defined(is_skia_standalone)) {
cflags += [ "-w" ]
......@@ -210,6 +212,10 @@ config("extra_warnings") {
}
}
if (is_gcc) {
cflags_cc = [ "-Wdeprecated-copy" ]
}
if (angle_is_winuwp) {
cflags += [ "/wd4447" ] # 'main' signature found without threading model.
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment