Merge branch 'gaul-warnings'

This commit is contained in:
Daniel Graziotin 2017-10-04 08:41:52 +00:00
commit e0df856784
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ BINFLAG = -o
INCLUDES =
LIBS = -lm
LIBPATH =
CFLAGS += $(COPT) -g $(INCLUDES) #-Wall
CFLAGS += $(COPT) -g $(INCLUDES) -Wall -Wextra -Wno-unused-function
LDFLAGS += $(LIBPATH) -g $(LIBS) #-Wall
OBJS := $(patsubst %.$(C),%.$(OBJ),$(wildcard $(SOURCE_PATH)*.$(C)))

View file

@ -389,7 +389,7 @@ static unsigned long hash(const char *str)
unsigned long hash = 5381;
int c;
while (c = *str++) {
while ((c = *str++)) {
hash = ((hash << 5) + hash) + c;
}