aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-06-14 13:31:12 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-06-14 13:34:47 +0200
commitce33665c36e0f51c9f9a917bf0d3ee6955c6e034 (patch)
tree31cf41d6d1719b2c15d6a128ffd0d4545cd6457a
parent704d0a285f1e0936be3e9e32f0dfcfef48144e90 (diff)
downloadsparse-ce33665c36e0f51c9f9a917bf0d3ee6955c6e034.tar.gz
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 <gladkov.alexey@gmail.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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