Skip to content

Commit

Permalink
Use -O3 and enable more compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianTM committed Jan 20, 2025
1 parent b61191e commit 8414bed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mx-packageinstaller.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8414bed

Please sign in to comment.