Commit 6f432a6b by Tom Anderson

Gcc: Suppress some warnings in src/OpenGL

This CL removes some warning spam on a gcc build. Bug chromium:697528 R=capn@google.com Change-Id: I6909d30e3fcafc8ab7e3a98efe8d180a686781d8 Reviewed-on: https://swiftshader-review.googlesource.com/9031Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarTom Anderson <thomasanderson@google.com>
parent dba3e303
...@@ -28,6 +28,10 @@ config("swiftshader_libEGL_private_config") { ...@@ -28,6 +28,10 @@ config("swiftshader_libEGL_private_config") {
] ]
} else { } else {
cflags = [ "-Wno-sign-compare" ] cflags = [ "-Wno-sign-compare" ]
if (!is_clang) {
cflags += [ "-Wno-unused-but-set-variable" ]
}
defines += [ "LOG_TAG=\"swiftshader_libEGL\"" ] defines += [ "LOG_TAG=\"swiftshader_libEGL\"" ]
if (is_linux) { if (is_linux) {
......
...@@ -38,6 +38,9 @@ config("swiftshader_libGLESv2_private_config") { ...@@ -38,6 +38,9 @@ config("swiftshader_libGLESv2_private_config") {
} }
} else { } else {
cflags = [ "-Wno-sign-compare" ] cflags = [ "-Wno-sign-compare" ]
if (!is_clang) {
cflags += [ "-Wno-unused-but-set-variable" ]
}
defines += [ defines += [
"LOG_TAG=\"swiftshader_libGLESv2\"", "LOG_TAG=\"swiftshader_libGLESv2\"",
......
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