Enable type-limits warning.

Remove unneeded comparison in the JSON code.
via https://marc.info/?l=openbsd-ports&m=159958572325174&w=2
This commit is contained in:
Joris Vink 2020-09-08 19:29:15 +02:00
parent aaf8be40c2
commit f6af4a27f4
2 changed files with 2 additions and 1 deletions

View File

@ -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)", "")

View File

@ -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 == '\\') {