[build] Use -Wno-deprecated-declarations Don't let the public va*.h headers induce warnings when the macros detect compiler support for it. Change-Id: I37888241babe04cc0bb4a964f09c7dafa6d65677 Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/github.com/intel/libva/+/1722970 Reviewed-by: Petr Hosek <phosek@google.com>
diff --git a/fuchsia/BUILD.gn b/fuchsia/BUILD.gn index b5c2b4d..3cfd87d 100644 --- a/fuchsia/BUILD.gn +++ b/fuchsia/BUILD.gn
@@ -21,11 +21,13 @@ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. copy("copy_magma") { + visibility = [ ":*" ] sources = [ "../va/magma/va_magma.h" ] outputs = [ "$target_gen_dir/headers/va/va_magma.h" ] } action("gen_version") { + visibility = [ ":*" ] script = "gen_version.sh" sources = [ "../build/gen_version.sh", @@ -41,7 +43,8 @@ ] } -config("headers_config") { +config("headers.config") { + visibility = [ ":*" ] include_dirs = [ "$target_gen_dir/headers", "..", @@ -53,5 +56,10 @@ ":copy_magma", ":gen_version", ] - public_configs = [ ":headers_config" ] + public_configs = [ + ":headers.config", + + # Don't warn about `va_deprecated` declarations in the public headers. + "//build/config:Wno-deprecated-declarations", + ] }