• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/jsoncpp/0001-Remove-Werror.patch
Jörg KrauseJörg Krause committed f9280fd9e9f11 Aug 2015
Raw file
Source viewDiff to previous
 
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
8
​
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.
12
​
13
Backported from: d7b84f69c5e92178e110552cce27f900744e1779
14
​
15
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
16
---
17
 CMakeLists.txt | 4 ++--
18
 1 file changed, 2 insertions(+), 2 deletions(-)
19
​
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 )
25
 
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()
36
 
37
-- 
38
2.5.0
39
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.