From 8414bed00cbc74f66a4eeb7c231598c765da700b Mon Sep 17 00:00:00 2001 From: Adrian Date: Mon, 20 Jan 2025 12:04:21 -0500 Subject: [PATCH] Use -O3 and enable more compile warnings --- mx-packageinstaller.pro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mx-packageinstaller.pro b/mx-packageinstaller.pro index 67efdbbe..9097c32f 100644 --- a/mx-packageinstaller.pro +++ b/mx-packageinstaller.pro @@ -29,10 +29,11 @@ CONFIG(release, debug|release) { DEFINES += NDEBUG QMAKE_CXXFLAGS += -flto=auto QMAKE_LFLAGS += -flto=auto + QMAKE_CXXFLAGS_RELEASE = -O3 } -QMAKE_CXXFLAGS += -Wpedantic -pedantic -Werror - +QMAKE_CXXFLAGS += -Wpedantic -pedantic -Werror=return-type -Werror=switch +QMAKE_CXXFLAGS += -Werror=uninitialized -Werror=return-local-addr -Werror TARGET = mx-packageinstaller TEMPLATE = app