Skip to content

Commit 3b9dbca

Browse files
committed
Use -O3 compiler option; add more warrnings
1 parent 9e3216e commit 3b9dbca

File tree

2 files changed

+11
-40
lines changed

2 files changed

+11
-40
lines changed

.github/workflows/close-old-issues.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

custom-toolbox.pro

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,21 @@
2121
# **********************************************************************/
2222

2323
QT += core gui widgets
24-
CONFIG += c++17
24+
CONFIG += debug_and_release warn_on strict_c++ c++17
2525

2626
TARGET = custom-toolbox
2727
TEMPLATE = app
2828

29+
CONFIG(release, debug|release) {
30+
DEFINES += NDEBUG
31+
QMAKE_CXXFLAGS += -flto=auto
32+
QMAKE_LFLAGS += -flto=auto
33+
QMAKE_CXXFLAGS_RELEASE = -O3
34+
}
35+
36+
QMAKE_CXXFLAGS += -Wpedantic -pedantic -Werror=return-type -Werror=switch
37+
QMAKE_CXXFLAGS += -Werror=uninitialized -Werror=return-local-addr -Werror
38+
2939
# The following define makes your compiler warn you if you use any
3040
# feature of Qt which has been marked as deprecated (the exact warnings
3141
# depend on your compiler). Please consult the documentation of the

0 commit comments

Comments
 (0)