kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit f6af4a27f49d2fef33783066771fc0635288ecc5
parent aaf8be40c20dafbbb1b4e1693567f062beea9267
Author: Joris Vink <joris@coders.se>
Date:   Tue,  8 Sep 2020 19:29:15 +0200

Enable type-limits warning.

Remove unneeded comparison in the JSON code.
via https://marc.info/?l=openbsd-ports&m=159958572325174&w=2

Diffstat:
Makefile | 1+
src/json.c | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -27,6 +27,7 @@ FEATURES_INC= CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes CFLAGS+=-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual CFLAGS+=-Wsign-compare -Iinclude/kore -I$(OBJDIR) -std=c99 -pedantic +CFLAGS+=-Wtype-limits CFLAGS+=-DPREFIX='"$(PREFIX)"' -fstack-protector-all ifneq ("$(OPENSSL_PATH)", "") diff --git a/src/json.c b/src/json.c @@ -780,7 +780,7 @@ json_get_string(struct kore_json *json) if (ch == '"') break; - if (ch >= 0 && ch <= 0x1f) + if (ch <= 0x1f) goto cleanup; if (ch == '\\') {