Commit 81efa8ec by Brett Wilson

Disable pointer conversion warning in XNVCtrl

This warning happens on some older versions of the X headers, such as those present on the current Chromium linux_chromium_chromeos_rel_ng bots. The default warnings in the GN build are slightly more strict than in GYP which is why we need to add some isolated warning disables. BUG=432959 Change-Id: Id6218780195c59f160adae789305638d3463be9a Reviewed-on: https://chromium-review.googlesource.com/338424Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 71fb2100
...@@ -2,11 +2,27 @@ ...@@ -2,11 +2,27 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
static_library("libXNVCtrl") { # This warning disable must be appended to the command line after the general
# warnings setup, so must be in a config.
config("libXNVCtrl_config") {
# This will build under most configurations with this warning enabled, but
# some older system headers are missing a "const" on the third parameter of
# XextAddDisplay which will cause a failure.
cflags = [
"-Wno-incompatible-pointer-types-discards-qualifiers",
]
}
source_set("libXNVCtrl") {
sources = [ sources = [
"NVCtrl.c", "NVCtrl.c",
"NVCtrl.h", "NVCtrl.h",
"NVCtrlLib.h", "NVCtrlLib.h",
"nv_control.h", "nv_control.h",
] ]
configs += [
":libXNVCtrl_config",
"//build/config/linux:x11",
]
} }
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