summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2017-07-06 18:51:47 -0700
committerXiang, Haihao <haihao.xiang@intel.com>2017-09-27 12:56:02 +0800
commitf569d5c9283f4483c9c683530fc7a9877ff793db (patch)
treeb09f4e307204b1ed2b4649af7b10f63c6878c283
parente14ead906828960d0ff05bd1b9602515abcb6fbb (diff)
downloadlibva-intel-driver-f569d5c9283f4483c9c683530fc7a9877ff793db.tar.gz
test: ignore deprecated-declarations for GCC >= 6.x
In libva 2.0 the VAProfileH264Baseline declaration has been deprecated. In the test/Makefile.am, we use -Wall -Werror so all warnings are treated as errors. For GCC < 6.x, deprecated-declarations are not flagged as warnings, thus don't break compilation. However, GCC >= 6.x treats deprecated-declarations as warnings and therefore breaks compilation. Ignore deprecated-declarations with the -Wno-deprecated-declarations compiler flag for now. Fixes #219 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r--test/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index f250fee6..2a9a46f9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -102,6 +102,7 @@ test_i965_drv_video_CPPFLAGS = \
test_i965_drv_video_CXXFLAGS = \
-Wall -Werror \
+ -Wno-deprecated-declarations \
$(AM_CXXFLAGS) \
$(NULL)