1From 6bd733b52f0b4039407c676cd3126a9e2f79456b Mon Sep 17 00:00:00 2001 2From: Peter Seiderer <ps.report@gmx.net> 3Date: Fri, 5 Feb 2021 18:24:08 +0100 4Subject: [PATCH] cmake: remove -Werror and -Wfatal-errors compiler command 5 line option 6MIME-Version: 1.0 7Content-Type: text/plain; charset=UTF-8 8Content-Transfer-Encoding: 8bit 9 10Fixes (with bootlin-riscv64-musl toolchain): 11 12 .../build/libcamera-apps-2d1009e3badcc8047361ff81149ad6cba3b911b5/core/libcamera_app.cpp:30:22: error: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘2154321408’ to ‘-2140645888’ [-Werror=overflow] 13 30 | int ret = ioctl(fd, VIDIOC_QUERYCAP, &caps); 14 | ^~~~~~~~~~~~~~~ 15 cc1plus: all warnings being treated as errors 16 17Signed-off-by: Peter Seiderer <ps.report@gmx.net> 18--- 19 CMakeLists.txt | 2 +- 20 1 file changed, 1 insertion(+), 1 deletion(-) 21 22diff --git a/CMakeLists.txt b/CMakeLists.txt 23index 748c6dd..1ca1e39 100644 24--- a/CMakeLists.txt 25+++ b/CMakeLists.txt 26@@ -11,7 +11,7 @@ endif() 27 28 set (CMAKE_EXPORT_COMPILE_COMMANDS ON) 29 set (CMAKE_CXX_STANDARD 17) 30-add_compile_options(-Wall -Wextra -pedantic -Wno-unused-parameter -faligned-new -Werror -Wfatal-errors) 31+add_compile_options(-Wall -Wextra -pedantic -Wno-unused-parameter -faligned-new) 32 add_definitions(-D_FILE_OFFSET_BITS=64) 33 34 if (CMAKE_COMPILER_IS_GNUCXX) 35-- 362.34.1 37 38