Merge branch 'gaul-warnings'
This commit is contained in:
commit
e0df856784
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -15,7 +15,7 @@ BINFLAG = -o
|
||||||
INCLUDES =
|
INCLUDES =
|
||||||
LIBS = -lm
|
LIBS = -lm
|
||||||
LIBPATH =
|
LIBPATH =
|
||||||
CFLAGS += $(COPT) -g $(INCLUDES) #-Wall
|
CFLAGS += $(COPT) -g $(INCLUDES) -Wall -Wextra -Wno-unused-function
|
||||||
LDFLAGS += $(LIBPATH) -g $(LIBS) #-Wall
|
LDFLAGS += $(LIBPATH) -g $(LIBS) #-Wall
|
||||||
|
|
||||||
OBJS := $(patsubst %.$(C),%.$(OBJ),$(wildcard $(SOURCE_PATH)*.$(C)))
|
OBJS := $(patsubst %.$(C),%.$(OBJ),$(wildcard $(SOURCE_PATH)*.$(C)))
|
||||||
|
|
|
@ -389,7 +389,7 @@ static unsigned long hash(const char *str)
|
||||||
unsigned long hash = 5381;
|
unsigned long hash = 5381;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
while (c = *str++) {
|
while ((c = *str++)) {
|
||||||
hash = ((hash << 5) + hash) + c;
|
hash = ((hash << 5) + hash) + c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue