diff options
| author | Anuj Mittal <anuj.mittal@intel.com> | 2019-08-21 07:35:43 +0800 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2019-08-21 12:27:06 +0800 |
| commit | 065895e2c5aae438de0194bc579505b18035eb13 (patch) | |
| tree | ae8aa5923275c9f39785d27782401d90a5093e46 | |
| parent | 2558672de2e5b489b064776b2b0d3926ad1a0eb5 (diff) | |
| download | meta-intel-065895e2c5aae438de0194bc579505b18035eb13.tar.gz | |
intel-media-driver: dont mark warnings as errors
Switch the driver configuration MEDIA_BUILD_FATAL_WARNINGS to OFF so
-Werror is not used. Also patch out the use of
-Werror=implicit-function-declaration to prevent errors when building
with gcc9.
| cc1plus: error: '-Werror=' argument
'-Werror=implicit-function-declaration' is not valid for C++ [-Werror]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
| -rw-r--r-- | recipes-multimedia/libva/intel-media-driver/0001-dont-mark-implicit-function-declaration-warnings-as-.patch | 35 | ||||
| -rw-r--r-- | recipes-multimedia/libva/intel-media-driver_19.2.1.bb | 7 |
2 files changed, 41 insertions, 1 deletions
diff --git a/recipes-multimedia/libva/intel-media-driver/0001-dont-mark-implicit-function-declaration-warnings-as-.patch b/recipes-multimedia/libva/intel-media-driver/0001-dont-mark-implicit-function-declaration-warnings-as-.patch new file mode 100644 index 00000000..d3a7707b --- /dev/null +++ b/recipes-multimedia/libva/intel-media-driver/0001-dont-mark-implicit-function-declaration-warnings-as-.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 676b76e16ba6468d95c452eb891e34fcfc498c07 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
| 3 | Date: Wed, 21 Aug 2019 08:21:39 +0800 | ||
| 4 | Subject: [PATCH] dont mark implicit-function-declaration warnings as errors | ||
| 5 | |||
| 6 | Otherwise, when building with gcc 9.2: | ||
| 7 | |||
| 8 | | cc1plus: error: '-Werror=' argument | ||
| 9 | |'-Werror=implicit-function-declaration' is not valid for C++ [-Werror] | ||
| 10 | |||
| 11 | Also see: | ||
| 12 | https://github.com/intel/media-driver/issues/712 | ||
| 13 | |||
| 14 | Upstream-Status: Pending | ||
| 15 | |||
| 16 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
| 17 | --- | ||
| 18 | media_driver/cmake/linux/media_compile_flags_linux.cmake | 1 - | ||
| 19 | 1 file changed, 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/media_driver/cmake/linux/media_compile_flags_linux.cmake b/media_driver/cmake/linux/media_compile_flags_linux.cmake | ||
| 22 | index 9253b2d6..d2cdb34e 100755 | ||
| 23 | --- a/media_driver/cmake/linux/media_compile_flags_linux.cmake | ||
| 24 | +++ b/media_driver/cmake/linux/media_compile_flags_linux.cmake | ||
| 25 | @@ -32,7 +32,6 @@ set(MEDIA_COMPILER_FLAGS_COMMON | ||
| 26 | -Wno-overflow | ||
| 27 | -Wno-parentheses | ||
| 28 | -Wno-delete-incomplete | ||
| 29 | - -Werror=implicit-function-declaration | ||
| 30 | -Werror=address | ||
| 31 | -Werror=format-security | ||
| 32 | -Werror=non-virtual-dtor | ||
| 33 | -- | ||
| 34 | 2.21.0 | ||
| 35 | |||
diff --git a/recipes-multimedia/libva/intel-media-driver_19.2.1.bb b/recipes-multimedia/libva/intel-media-driver_19.2.1.bb index ee5a7f06..53ade25d 100644 --- a/recipes-multimedia/libva/intel-media-driver_19.2.1.bb +++ b/recipes-multimedia/libva/intel-media-driver_19.2.1.bb | |||
| @@ -20,6 +20,7 @@ REQUIRED_DISTRO_FEATURES = "opengl" | |||
| 20 | DEPENDS += "libva gmmlib" | 20 | DEPENDS += "libva gmmlib" |
| 21 | 21 | ||
| 22 | SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;branch=intel-media-19.2 \ | 22 | SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;branch=intel-media-19.2 \ |
| 23 | file://0001-dont-mark-implicit-function-declaration-warnings-as-.patch \ | ||
| 23 | " | 24 | " |
| 24 | 25 | ||
| 25 | SRCREV = "9b648d81fb43f70c49304011371279713cb13ccc" | 26 | SRCREV = "9b648d81fb43f70c49304011371279713cb13ccc" |
| @@ -34,7 +35,11 @@ inherit cmake pkgconfig | |||
| 34 | MEDIA_DRIVER_ARCH_x86 = "32" | 35 | MEDIA_DRIVER_ARCH_x86 = "32" |
| 35 | MEDIA_DRIVER_ARCH_x86-64 = "64" | 36 | MEDIA_DRIVER_ARCH_x86-64 = "64" |
| 36 | 37 | ||
| 37 | EXTRA_OECMAKE += "-DMEDIA_RUN_TEST_SUITE=OFF -DARCH=${MEDIA_DRIVER_ARCH}" | 38 | EXTRA_OECMAKE += " \ |
| 39 | -DMEDIA_RUN_TEST_SUITE=OFF \ | ||
| 40 | -DARCH=${MEDIA_DRIVER_ARCH} \ | ||
| 41 | -DMEDIA_BUILD_FATAL_WARNINGS=OFF \ | ||
| 42 | " | ||
| 38 | 43 | ||
| 39 | # See: https://github.com/intel/media-driver/issues/358 | 44 | # See: https://github.com/intel/media-driver/issues/358 |
| 40 | FILES_${PN} += " \ | 45 | FILES_${PN} += " \ |
