Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 1 | From 15fbe266af3dcc5b7660397204b06d04364a953a Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 2 Apr 2022 21:37:42 -0700 |
| 4 | Subject: [PATCH] mmal: Do not use -Werror |
| 5 | |
| 6 | Clang warns about unused-but-set variables |
| 7 | interface/mmal/vc/mmal_vc_api.c:395:18: error: variable 'status' set but not used [-We |
| 8 | rror,-Wunused-but-set-variable] |
| 9 | | MMAL_STATUS_T status; |
| 10 | | ^ |
| 11 | |
| 12 | Upstream-Status: Pending |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | interface/mmal/CMakeLists.txt | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/interface/mmal/CMakeLists.txt b/interface/mmal/CMakeLists.txt |
| 19 | index 46f149d..c5c1642 100644 |
| 20 | --- a/interface/mmal/CMakeLists.txt |
| 21 | +++ b/interface/mmal/CMakeLists.txt |
| 22 | @@ -3,7 +3,7 @@ if (NOT DEFINED LIBRARY_TYPE) |
| 23 | set(LIBRARY_TYPE SHARED) |
| 24 | endif (NOT DEFINED LIBRARY_TYPE) |
| 25 | |
| 26 | -add_definitions(-Wall -Werror) |
| 27 | +add_definitions(-Wall) |
| 28 | |
| 29 | add_library(mmal SHARED util/mmal_util.c) |
| 30 | |
| 31 | -- |
| 32 | 2.35.1 |
| 33 | |