From: Florian Fainelli Date: Sun, 2 Jul 2017 19:49:02 +0000 (-0700) Subject: jq: Set -std=c99 CLFAGS X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=38eb3ad83a6c71e897f99dbf27f1980d32194ee2;p=feed%2Fpackages.git 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 --- diff --git a/utils/jq/Makefile b/utils/jq/Makefile index 18736110ef..560798bbb6 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