Commit 2d1c0a2b by jchen10 Committed by Commit Bot

Vulkan: Fix gcc compile error

Add 'no-unused-function' to compile glslang BUG=angleproject:2301 Change-Id: Iac741e007873fb718527514210649e6b658a63b8 Reviewed-on: https://chromium-review.googlesource.com/898394 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 44dcb911
...@@ -594,12 +594,16 @@ config("glslang_config") { ...@@ -594,12 +594,16 @@ config("glslang_config") {
} }
config("glslang_internal_config") { config("glslang_internal_config") {
cflags = []
if (is_clang || !is_win) { if (is_clang || !is_win) {
cflags = [ cflags += [
"-Wno-ignored-qualifiers", "-Wno-ignored-qualifiers",
"-Wno-reorder", "-Wno-reorder",
] ]
} }
if (!is_clang && !is_win) {
cflags += [ "-Wno-unused-function" ]
}
if (is_clang) { if (is_clang) {
# TODO(thakis): Consider enabling this, https://crbug.com/807632 # TODO(thakis): Consider enabling this, https://crbug.com/807632
cflags += [ "-Wno-implicit-fallthrough" ] cflags += [ "-Wno-implicit-fallthrough" ]
......
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