linux-pam: add optional libselinux and audit dependencies
[buildroot-gz.git] / package / jsoncpp / 0001-Remove-Werror.patch
blob178cbbf78f75443e743f033eaf3e7579371f7f96
1 From d7b84f69c5e92178e110552cce27f900744e1779 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
3 Date: Thu, 30 Jul 2015 23:47:05 +0200
4 Subject: [PATCH 1/1] Remove Werror
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 -Werror shouldn't be used in released code since it can cause random build
10 failures on moderate warnings. It also depends on the used toolchain since
11 different toolchains may or may not print the same warnings.
13 Backported from: d7b84f69c5e92178e110552cce27f900744e1779
15 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
16 ---
17 CMakeLists.txt | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
20 diff --git a/CMakeLists.txt b/CMakeLists.txt
21 index cab0de8..62bf203 100644
22 --- a/CMakeLists.txt
23 +++ b/CMakeLists.txt
24 @@ -97,10 +97,10 @@ endif( MSVC )
26 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
27 # using regular Clang or AppleClang
28 - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror -Wall -Wconversion -Wshadow -Wno-sign-conversion")
29 + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wconversion -Wshadow -Wno-sign-conversion")
30 elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
31 # using GCC
32 - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror -Wall -Wconversion -Wshadow -Wextra -pedantic")
33 + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wconversion -Wshadow -Wextra -pedantic")
34 # not yet ready for -Wsign-conversion
35 endif()
37 --
38 2.5.0