diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | utils.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ NAME=jw PREFIX=~/.local INSTALL=install -CFLAGS=-Wall -Wextra -Wshadow -Wcast-align -Wunused -Wpedantic -Wconversion -Wsign-conversion -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wnull-dereference -Wdouble-promotion -Wundef -Wpointer-arith -Wunreachable-code -Wwrite-strings -Winit-self -Wstrict-overflow -Wmaybe-uninitialized +CFLAGS=-Werror -Wall -Wextra -Wshadow -Wcast-align -Wunused -Wpedantic -Wconversion -Wsign-conversion -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wnull-dereference -Wdouble-promotion -Wundef -Wpointer-arith -Wunreachable-code -Wwrite-strings -Winit-self -Wstrict-overflow -Wmaybe-uninitialized CFILES=main.c write.c utils.c config.c cache.c search.c notebook.c OFILES=$(CFILES:.c=.o) @@ -72,7 +72,7 @@ unsigned long utils_djb2_hash(char *str) int c; while ((c = *str++)) - hash = ((hash << 5) + hash) + c; + hash = ((hash << 5) + hash) + (size_t)c; return hash; } |