json-c: fix icecc compilation

Skip -Werror to make it possible to compile this recipe with ICECC else
all fallthrough comments will be removed since we pre-process the files
on the host before sending them to the compile nodes which then cause
errors because of default -Werror switch.

Fixes: caf64f85b5c5 ("json-c: update 0.13.1 - > 0.14")
(From OE-Core rev: 915f8307b063e17ddadd5dface83578b8ad254e2)

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Marco Felsch 2023-11-28 23:47:44 +01:00 committed by Richard Purdie
parent bd00c3de14
commit 6481e8b209

View File

@ -17,6 +17,9 @@ UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+"
RPROVIDES:${PN} = "libjson"
# Required for ICECC builds
EXTRA_OECMAKE = "-DDISABLE_WERROR=ON"
inherit cmake ptest
do_install_ptest() {