src/Makefile: add -Wsign-compare to warning flags to better match MSVC.

This commit is contained in:
Markus F.X.J. Oberhumer 2020-12-07 23:04:37 +01:00
parent 4f5866b5a7
commit 7b0b760d78

View File

@ -67,7 +67,7 @@ CXXFLAGS += -fno-delete-null-pointer-checks
endif
CXXFLAGS += -fno-strict-aliasing -fwrapv
CXXFLAGS += -funsigned-char
CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wmissing-declarations -Wpointer-arith -Wshadow -Wvla -Wwrite-strings
CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wmissing-declarations -Wpointer-arith -Wshadow -Wsign-compare -Wvla -Wwrite-strings
CXXFLAGS_WERROR ?= -Werror
CXXFLAGS += $(CXXFLAGS_WERROR)