Browse Source

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<length; i++) {

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
lilik-openwrt-22.03
Florian Fainelli 7 years ago
parent
commit
38eb3ad83a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      utils/jq/Makefile

+ 3
- 1
utils/jq/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=jq PKG_NAME:=jq
PKG_VERSION:=1.5 PKG_VERSION:=1.5
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=BSD PKG_LICENSE:=BSD
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
@ -24,6 +24,8 @@ ifdef CONFIG_USE_MIPS16
TARGET_CFLAGS += -fno-ipa-sra TARGET_CFLAGS += -fno-ipa-sra
endif endif
TARGET_CFLAGS += -std=c99
define Package/jq define Package/jq
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities


Loading…
Cancel
Save