From 38eb3ad83a6c71e897f99dbf27f1980d32194ee2 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 2 Jul 2017 12:49:02 -0700 Subject: [PATCH] jq: Set -std=c99 CLFAGS Fixes build errors/warnings: locfile.c: In function 'locfile_init': locfile.c:21:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i=0; i --- utils/jq/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/jq/Makefile b/utils/jq/Makefile index 18736110e..560798bbb 100644 --- a/utils/jq/Makefile +++ b/utils/jq/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=jq PKG_VERSION:=1.5 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=BSD PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -24,6 +24,8 @@ ifdef CONFIG_USE_MIPS16 TARGET_CFLAGS += -fno-ipa-sra endif +TARGET_CFLAGS += -std=c99 + define Package/jq SECTION:=utils CATEGORY:=Utilities