GCC Wallification
This commit is contained in:
@ -34,7 +34,7 @@ else
|
||||
CFLAGS = $(OPT_FLAGS)
|
||||
endif
|
||||
|
||||
CFLAGS += -DNDEBUG -fPIC -Wno-deprecated -fno-exceptions -DHAVE_STDINT_H -static-libgcc -fno-rtti
|
||||
CFLAGS += -DNDEBUG -fPIC -Wall -Werror -fno-exceptions -DHAVE_STDINT_H -static-libgcc -fno-rtti
|
||||
|
||||
BINARY = $(NAME)_$(BIN_SUFFIX)
|
||||
CFLAGS += -DPAWN_CELL_SIZE=32 -DJIT -DASM32
|
||||
|
@ -233,7 +233,7 @@ void RankSystem::updatePos( RankStats* rr , Stats* s )
|
||||
* Who put these backwards...
|
||||
*/
|
||||
#define TRYREAD(t_var, t_num, t_size, t_file) \
|
||||
if (fread(t_var, t_size, t_num, t_file) != t_num) { \
|
||||
if (fread(t_var, t_size, t_num, t_file) != static_cast<size_t>(t_num)) { \
|
||||
break; \
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ else
|
||||
CFLAGS = $(OPT_FLAGS)
|
||||
endif
|
||||
|
||||
CFLAGS += -DNDEBUG -fPIC -Wno-deprecated -fno-exceptions -DHAVE_STDINT_H -static-libgcc -fno-rtti
|
||||
CFLAGS += -DNDEBUG -fPIC -Wall -Wno-non-virtual-dtor -Werror -fno-exceptions -DHAVE_STDINT_H -static-libgcc -fno-rtti
|
||||
|
||||
BINARY = $(NAME)_$(BIN_SUFFIX)
|
||||
CFLAGS += -DPAWN_CELL_SIZE=32 -DJIT -DASM32
|
||||
|
Reference in New Issue
Block a user