diff --git ui/accessibility/platform/BUILD.gn ui/accessibility/platform/BUILD.gn index 2f7f2a8f81ec0..6bea20e981df9 100644 --- ui/accessibility/platform/BUILD.gn +++ ui/accessibility/platform/BUILD.gn @@ -342,6 +342,10 @@ component("platform") { if (use_gio) { configs += [ "//build/linux:gio_config" ] } + + if (is_clang) { + cflags = [ "-Wno-deprecated-volatile" ] + } } } } diff --git ui/gtk/BUILD.gn ui/gtk/BUILD.gn index 80e8ba9452862..77272e01247a8 100644 --- ui/gtk/BUILD.gn +++ ui/gtk/BUILD.gn @@ -174,4 +174,8 @@ component("gtk") { # TODO: This should be removed. deps += [ "//ui/ozone" ] + + if (is_clang) { + cflags = [ "-Wno-deprecated-volatile" ] + } }