All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] json-c: Disable icecc to avoid implicit-fallthrough warning as error
@ 2019-06-06  2:05 Douglas Royds
  2019-06-06  9:45 ` Burton, Ross
  2019-06-07  1:21 ` [PATCH v2] " Douglas Royds
  0 siblings, 2 replies; 10+ messages in thread
From: Douglas Royds @ 2019-06-06  2:05 UTC (permalink / raw)
  To: openembedded-core

icecc preprocesses source files locally before shipping them off to be compiled
on remote hosts. This preprocessing removes comments, including /* fallthrough */
comments in switch statements that normally prevent the implicit-fallthrough
warning.

Rather than turning off -Werror by patching configure.ac, it is simpler to
disable icecc completely for json-c. There are very few source files to compile,
so the compilation is quick even without icecc.

See https://github.com/icecc/icecream/issues/419

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
---
 meta/recipes-devtools/json-c/json-c_0.13.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/json-c/json-c_0.13.1.bb b/meta/recipes-devtools/json-c/json-c_0.13.1.bb
index 5b10e68297..8d2a20352d 100644
--- a/meta/recipes-devtools/json-c/json-c_0.13.1.bb
+++ b/meta/recipes-devtools/json-c/json-c_0.13.1.bb
@@ -21,6 +21,7 @@ RPROVIDES_${PN} = "libjson"
 inherit autotools
 
 EXTRA_OECONF = "--enable-rdrand"
+ICECC_DISABLED = "1"
 
 do_configure_prepend() {
     # Clean up autoconf cruft that should not be in the tarball
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-06-11  2:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-06  2:05 [PATCH] json-c: Disable icecc to avoid implicit-fallthrough warning as error Douglas Royds
2019-06-06  9:45 ` Burton, Ross
2019-06-06 21:03   ` Douglas Royds
2019-06-06 21:15     ` Joshua Watt
2019-06-06 21:53       ` Douglas Royds
2019-06-06 22:04     ` Burton, Ross
2019-06-07  1:21 ` [PATCH v2] " Douglas Royds
2019-06-07 11:20   ` Burton, Ross
2019-06-09 19:56     ` Burton, Ross
2019-06-11  1:59   ` Douglas Royds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.