Add -Wconversion flag to makefile

Fix #12740, close #12747
pull/12750/head
ArkadiuszMichalski 2 years ago committed by Don Ho
parent 3596517894
commit 13dfaa96a8

@ -53,13 +53,13 @@ SUBMAKEFLAGS := -O --no-print-directory
ifeq "$(filter-out 0,$(DEBUG))" ""
BUILD_TYPE := release
BUILD_SUFFIX :=
CXXFLAGS += -Os
CXXFLAGS += -Os -Wconversion
CPP_DEFINE += NDEBUG
LDFLAGS += -s
else
BUILD_TYPE := debug
BUILD_SUFFIX := -debug
CXXFLAGS += -Og -g -Wall -Wpedantic
CXXFLAGS += -Og -g -Wall -Wpedantic -Wconversion
CPP_DEFINE += DEBUG
endif

Loading…
Cancel
Save