Add -Wconversion flag to makefile

Fix #12740, close #12747
This commit is contained in:
ArkadiuszMichalski 2023-01-02 11:58:27 +01:00 committed by Don Ho
parent 3596517894
commit 13dfaa96a8
1 changed files with 2 additions and 2 deletions

View File

@ -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