From 13dfaa96a8b224b000d470184ecae7a05057be45 Mon Sep 17 00:00:00 2001 From: ArkadiuszMichalski <2730894+ArkadiuszMichalski@users.noreply.github.com> Date: Mon, 2 Jan 2023 11:58:27 +0100 Subject: [PATCH] Add -Wconversion flag to makefile Fix #12740, close #12747 --- PowerEditor/gcc/makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/gcc/makefile b/PowerEditor/gcc/makefile index 9e6afc588..e5d738a86 100644 --- a/PowerEditor/gcc/makefile +++ b/PowerEditor/gcc/makefile @@ -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