From ce33665c36e0f51c9f9a917bf0d3ee6955c6e034 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Sun, 14 Jun 2020 13:31:12 +0200 Subject: sindex: use -stdc=gnu99 sindex use C99 for-loops: for (int i = 0, ....) No problem with this but sparse doesn't use this elsewhere yet and older compilers don't allow C99 by default. Fix this by adding '-std=gnu99' to the sindex-specific CFLAGS. Cc: Alexey Gladkov Signed-off-by: Luc Van Oostenryck --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d1486a0c..4bf96f40 100644 --- a/Makefile +++ b/Makefile @@ -153,6 +153,7 @@ INST_PROGRAMS += sindex INST_MAN1 += sindex.1 sindex-ldlibs := $(shell $(PKG_CONFIG) --libs sqlite3) sindex-cflags := $(shell $(PKG_CONFIG) --cflags sqlite3) +sindex-cflags += -std=gnu99 else $(warning Your SQLite3 version ($(SQLITE_VERSION)) is too old, 3.24.0 or later is required.) endif -- cgit 1.2.3-korg