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 <gladkov.alexey@xxxxxxxxx> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d1486a0ce373..4bf96f406e5a 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 -- 2.27.0