forked from mirrors/kore
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:
parent
aaf8be40c2
commit
f6af4a27f4
1
Makefile
1
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)", "")
|
||||
|
@ -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 == '\\') {
|
||||
|
Loading…
Reference in New Issue
Block a user