* [PATCH] sindex: use -stdc=gnu99
@ 2020-06-14 11:35 Luc Van Oostenryck
0 siblings, 0 replies; only message in thread
From: Luc Van Oostenryck @ 2020-06-14 11:35 UTC (permalink / raw)
To: linux-sparse; +Cc: Luc Van Oostenryck, Alexey Gladkov
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>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-14 11:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-14 11:35 [PATCH] sindex: use -stdc=gnu99 Luc Van Oostenryck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).