blob: c762a9fc4a36808f7621c93dc76221bad0430d5f [file] [log] [blame]
Brad Bishopf6355e42020-12-08 14:30:50 -05001From ee842886f3c0589d6df5a0687973beb18a3be524 Mon Sep 17 00:00:00 2001
Andrew Geissler062316f2020-05-15 14:19:14 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 31 Mar 2020 11:51:02 -0700
Brad Bishopf6355e42020-12-08 14:30:50 -05004Subject: [PATCH 21/21] cmake: Disable format-overflow warning as error
Andrew Geissler062316f2020-05-15 14:19:14 -05005
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
Andrew Geissler5d59ec72020-07-24 16:09:26 -050022diff --git a/host_applications/linux/libs/bcm_host/CMakeLists.txt b/host_applications/linux/libs/bcm_host/CMakeLists.txt
Brad Bishopf6355e42020-12-08 14:30:50 -050023index a863cb6..f358135 100644
Andrew Geissler062316f2020-05-15 14:19:14 -050024--- a/host_applications/linux/libs/bcm_host/CMakeLists.txt
25+++ b/host_applications/linux/libs/bcm_host/CMakeLists.txt
26@@ -3,7 +3,7 @@ if (WIN32)
27 set(VCOS_PLATFORM win32)
28 else ()
29 set(VCOS_PLATFORM pthreads)
30- add_definitions(-Wall -Werror)
Andrew Geissler5d59ec72020-07-24 16:09:26 -050031+ add_definitions(-Wall -Werror -Wno-error=format-overflow)
Andrew Geissler062316f2020-05-15 14:19:14 -050032 endif ()
33
34 # set this as we want all the source of vchostif to be available in libbcm_host
Brad Bishopf6355e42020-12-08 14:30:50 -050035--
362.27.0
37