Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1] zbar: needs c99 mode
@ 2019-02-27 22:01 Peter Seiderer
  2019-02-28 22:45 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Seiderer @ 2019-02-27 22:01 UTC (permalink / raw)
  To: buildroot

Fixes [1]:

  bar/sqcode.c: In function 'sq_scan_shape':
  zbar/sqcode.c:171:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
       for (int x = x0 - 1; x < x0 + width + 1; x++) {
       ^
  zbar/sqcode.c:171:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code

[1] http://autobuild.buildroot.net/results/7d544275756f655f9d42c05562aca653923155b1

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 package/zbar/zbar.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/zbar/zbar.mk b/package/zbar/zbar.mk
index 6df069e001..c3f0797c55 100644
--- a/package/zbar/zbar.mk
+++ b/package/zbar/zbar.mk
@@ -13,6 +13,8 @@ ZBAR_AUTORECONF = YES
 ZBAR_DEPENDENCIES = libv4l jpeg
 # add host-gettext for AM_ICONV macro
 ZBAR_DEPENDENCIES += host-gettext
+# uses C99 features
+ZBAR_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
 ZBAR_CONF_OPTS = \
 	--disable-doc \
 	--without-imagemagick \
-- 
2.20.1

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

* [Buildroot] [PATCH v1] zbar: needs c99 mode
  2019-02-27 22:01 [Buildroot] [PATCH v1] zbar: needs c99 mode Peter Seiderer
@ 2019-02-28 22:45 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-02-28 22:45 UTC (permalink / raw)
  To: buildroot

On Wed, 27 Feb 2019 23:01:00 +0100
Peter Seiderer <ps.report@gmx.net> wrote:

> Fixes [1]:
> 
>   bar/sqcode.c: In function 'sq_scan_shape':
>   zbar/sqcode.c:171:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
>        for (int x = x0 - 1; x < x0 + width + 1; x++) {
>        ^
>   zbar/sqcode.c:171:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
> 
> [1] http://autobuild.buildroot.net/results/7d544275756f655f9d42c05562aca653923155b1
> 
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
>  package/zbar/zbar.mk | 2 ++
>  1 file changed, 2 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2019-02-28 22:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-27 22:01 [Buildroot] [PATCH v1] zbar: needs c99 mode Peter Seiderer
2019-02-28 22:45 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox