summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-03-31 11:54:41 -0700
committerAndrei Gherzan <andrei@gherzan.ro>2020-04-03 17:34:07 +0100
commit025a2025eab8fbea6273b5f4bedc73f1772582d5 (patch)
treea40e24ea7eff12c97f1c4efedfa02e01d92d107b /recipes-graphics
parent909a962fe1f6f4bb702cc1507892785f778e49af (diff)
downloadmeta-raspberrypi-025a2025eab8fbea6273b5f4bedc73f1772582d5.tar.gz
userland: Fix build with gcc10
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/userland/files/0021-cmake-Disable-format-overflow-warning-as-error.patch32
-rw-r--r--recipes-graphics/userland/userland_git.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/recipes-graphics/userland/files/0021-cmake-Disable-format-overflow-warning-as-error.patch b/recipes-graphics/userland/files/0021-cmake-Disable-format-overflow-warning-as-error.patch
new file mode 100644
index 0000000..703d300
--- /dev/null
+++ b/recipes-graphics/userland/files/0021-cmake-Disable-format-overflow-warning-as-error.patch
@@ -0,0 +1,32 @@
1From 4886bd9f33727f6a16aeb3b1aa3c25e459f06581 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 31 Mar 2020 11:51:02 -0700
4Subject: [PATCH] cmake: Disable format-overflow warning as error
5
6gcc10 complains about a check which could potentially be null
7
8build/inc/interface/vcos/vcos_logging.h:234:88: error: '%s' directive argument is null [-Werror=format-overflow=]
9 234 | # define _VCOS_LOG_X(cat, _level, fmt...) do { if (vcos_is_log_enabled(cat,_level)) vcos_log_impl(cat,_level,fmt); } while (0)
10 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11
12A potential fix would be to check for fmt not being null but lets leave
13that to experts
14
15Upstream-Status: Pending
16
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 host_applications/linux/libs/bcm_host/CMakeLists.txt | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22--- a/host_applications/linux/libs/bcm_host/CMakeLists.txt
23+++ b/host_applications/linux/libs/bcm_host/CMakeLists.txt
24@@ -3,7 +3,7 @@ if (WIN32)
25 set(VCOS_PLATFORM win32)
26 else ()
27 set(VCOS_PLATFORM pthreads)
28- add_definitions(-Wall -Werror)
29+ add_definitions(-Wall)
30 endif ()
31
32 # set this as we want all the source of vchostif to be available in libbcm_host
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb
index c44388d..eefc1ec 100644
--- a/recipes-graphics/userland/userland_git.bb
+++ b/recipes-graphics/userland/userland_git.bb
@@ -41,6 +41,7 @@ SRC_URI = "\
41 file://0018-Add-EGL_IMG_context_priority-related-defines.patch \ 41 file://0018-Add-EGL_IMG_context_priority-related-defines.patch \
42 file://0019-libfdt-Undefine-__wordsize-if-already-defined.patch \ 42 file://0019-libfdt-Undefine-__wordsize-if-already-defined.patch \
43 file://0020-openmaxil-add-pkg-config-file.patch \ 43 file://0020-openmaxil-add-pkg-config-file.patch \
44 file://0021-cmake-Disable-format-overflow-warning-as-error.patch \
44" 45"
45S = "${WORKDIR}/git" 46S = "${WORKDIR}/git"
46 47