mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00

refresh patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit fd83102af7
)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
From d08003ab30452b4268121bcf82e03fdf21c89cdd Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Tue, 31 Mar 2020 11:51:02 -0700
|
|
Subject: [PATCH] cmake: Disable format-overflow warning as error
|
|
|
|
gcc10 complains about a check which could potentially be null
|
|
|
|
build/inc/interface/vcos/vcos_logging.h:234:88: error: '%s' directive argument is null [-Werror=format-overflow=]
|
|
234 | # define _VCOS_LOG_X(cat, _level, fmt...) do { if (vcos_is_log_enabled(cat,_level)) vcos_log_impl(cat,_level,fmt); } while (0)
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
A potential fix would be to check for fmt not being null but lets leave
|
|
that to experts
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
---
|
|
host_applications/linux/libs/bcm_host/CMakeLists.txt | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/host_applications/linux/libs/bcm_host/CMakeLists.txt b/host_applications/linux/libs/bcm_host/CMakeLists.txt
|
|
index 2f4beb9..7a4ab06 100644
|
|
--- a/host_applications/linux/libs/bcm_host/CMakeLists.txt
|
|
+++ b/host_applications/linux/libs/bcm_host/CMakeLists.txt
|
|
@@ -3,7 +3,7 @@ if (WIN32)
|
|
set(VCOS_PLATFORM win32)
|
|
else ()
|
|
set(VCOS_PLATFORM pthreads)
|
|
- add_definitions(-Wall -Werror)
|
|
+ add_definitions(-Wall -Werror -Wno-error=format-overflow)
|
|
endif ()
|
|
|
|
# set this as we want all the source of vchostif to be available in libbcm_host
|