1From 169f62770f63a43b15d4d4c82336fd57c8467cfe Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Sat, 4 Apr 2020 21:43:51 -0700 4Subject: [PATCH] cmake: Disable using -Wno-maybe-uninitialized 5 6This warning causes clang builds to fail because this is not a 7recognised warning with clang 8 9Upstream-Status: Pending 10 11Signed-off-by: Khem Raj <raj.khem@gmail.com> 12--- 13 src/CMakeLists.txt | 1 - 14 1 file changed, 1 deletion(-) 15 16--- a/src/CMakeLists.txt 17+++ b/src/CMakeLists.txt 18@@ -6,7 +6,6 @@ 19 set (SWIG_CXX_DISABLE_WARNINGS -Wno-error 20 -Wno-delete-non-virtual-dtor 21 -Wno-unused-function 22- -Wno-maybe-uninitialized 23 -Wno-strict-aliasing) 24 25 # If building under android, make sure swig gets an ANDROID flag 26--- a/CMakeLists.txt 27+++ b/CMakeLists.txt 28@@ -115,8 +115,7 @@ endif (WERROR) 29 upm_add_compile_flags(C ${C_CXX_WARNING_FLAGS} 30 -Winit-self 31 -Wimplicit 32- -Wsign-compare 33- -Wmissing-parameter-type) 34+ -Wsign-compare) 35 36 # Set CXX compiler warning flags at top-level scope and emit a warning about 37 # unsupported flags 38