summaryrefslogtreecommitdiffstats
path: root/rules/json-c.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-03-03 18:21:58 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-03-03 21:15:02 +0100
commitbb0e6ca0a85f41942ceb6e99cb4202396c326999 (patch)
tree9567677bdaa24651a06c91932317d2bd30db426f /rules/json-c.make
parentc984dee8253eeac830e30d7917dbe1dfc7d44eb1 (diff)
downloadptxdist-bb0e6ca0a85f41942ceb6e99cb4202396c326999.tar.gz
ptxdist-bb0e6ca0a85f41942ceb6e99cb4202396c326999.tar.xz
json-c: fix building with gcc-7.x icecc
Icecc splits preprocessing and compiling. As a result comments are no longer available at compile time and building fails with: json_object.c: In function 'json_object_get_int64': json_object.c:698:6: error: this statement may fall through [-Werror=implicit-fallthrough=] json_object.c:701:2: note: here cc1: all warnings being treated as errors The code uses comments that prevent building with '-C' so use remove -Werror instead. Note: Setting CFLAGS during configure does not work. -Werror is added later in the commandline. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/json-c.make')
-rw-r--r--rules/json-c.make4
1 files changed, 0 insertions, 4 deletions
diff --git a/rules/json-c.make b/rules/json-c.make
index 0b7fe4626..166392e1f 100644
--- a/rules/json-c.make
+++ b/rules/json-c.make
@@ -29,10 +29,6 @@ JSON_C_LICENSE := MIT
# Prepare
# ----------------------------------------------------------------------------
-JSON_C_CONF_ENV := \
- $(CROSS_ENV) \
- CFLAGS="-O2 -g -Wno-error"
-
#
# autoconf
#