diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-06-14 13:31:12 +0200 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-06-14 13:34:47 +0200 |
commit | ce33665c36e0f51c9f9a917bf0d3ee6955c6e034 (patch) | |
tree | 31cf41d6d1719b2c15d6a128ffd0d4545cd6457a | |
parent | 704d0a285f1e0936be3e9e32f0dfcfef48144e90 (diff) | |
download | sparse-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-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |