[gnome-continuous] Fix json-c build failure by adding -Wno-error=unused-value



commit 758f02232182ae94ce0b5a0d776706fd66b05166
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Sep 23 14:46:09 2014 +0200

    Fix json-c build failure by adding -Wno-error=unused-value
    
    With the later gcc version from openembedded master json-c fails
    to build due to -Werror. This adds a patch that adds -Wno-error=unused
    to the cflags.

 manifest.json                                      |    3 +-
 ...-failure-by-adding-Wno-error-unused-value.patch |   25 ++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/manifest.json b/manifest.json
index 281a93f..9aaba02 100644
--- a/manifest.json
+++ b/manifest.json
@@ -669,7 +669,8 @@
 
                {"src": "git:git://github.com/json-c/json-c.git",
                 "tag": "381f77c5bccf20234a2bddae2b6ac43997faf0a2",
-                "patches": ["json-c-autogen.patch"]},
+                "patches": ["json-c-autogen.patch",
+                             "json-c-Fix-build-failure-by-adding-Wno-error-unused-value.patch"]},
 
                {"src": "gnome:mobile-broadband-provider-info"},
 
diff --git a/patches/json-c-Fix-build-failure-by-adding-Wno-error-unused-value.patch 
b/patches/json-c-Fix-build-failure-by-adding-Wno-error-unused-value.patch
new file mode 100644
index 0000000..3f232ff
--- /dev/null
+++ b/patches/json-c-Fix-build-failure-by-adding-Wno-error-unused-value.patch
@@ -0,0 +1,25 @@
+From 8dbf5dc53c307d1b30d93a34355ef0f0329a173f Mon Sep 17 00:00:00 2001
+From: Alexander Larsson <alexl redhat com>
+Date: Fri, 19 Sep 2014 08:52:24 +0200
+Subject: [PATCH] Fix build failure by adding -Wno-error=unused-value
+
+I got this:
+../json_tokener.c: In function 'json_tokener_parse_ex':
+../json_tokener.c:219:36: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
+   ( ++(str), ((tok)->char_offset)++, c)
+                                    ^
+---
+ Makefile.am.inc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.am.inc b/Makefile.am.inc
+index b1ebce8..09278a4 100644
+--- a/Makefile.am.inc
++++ b/Makefile.am.inc
+@@ -1,2 +1,2 @@
+-AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
++AM_CFLAGS = -Wall -Wwrite-strings -Werror -Wno-error=unused-value -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
+ 
+-- 
+2.1.0
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]