fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit 382ae99776f72279c3de4ebabca69dc754282187 parent a3c3f139a0b947760d8d1551b65a21a63bc65ea8 Author: John Hawthorn <john@hawthorn.email> Date: Fri, 27 Dec 2019 18:44:01 -0800 Error on usage of VLA Diffstat:
| M | Makefile | | | 2 | +- |
| M | test/test_choices.c | | | 4 | ++-- |
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,7 +1,7 @@ VERSION=1.0 CPPFLAGS=-DVERSION=\"${VERSION}\" -D_GNU_SOURCE -CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps +CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps -Werror=vla PREFIX?=/usr/local MANDIR?=$(PREFIX)/share/man BINDIR?=$(PREFIX)/bin diff --git a/test/test_choices.c b/test/test_choices.c @@ -135,8 +135,8 @@ TEST test_choices_unicode() { } TEST test_choices_large_input() { - int N = 100000; - char *strings[N]; + const int N = 100000; + char *strings[100000]; for(int i = 0; i < N; i++) { asprintf(&strings[i], "%i", i);