File tree Expand file tree Collapse file tree 2 files changed +11
-40
lines changed
Expand file tree Collapse file tree 2 files changed +11
-40
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2121# **********************************************************************/
2222
2323QT += core gui widgets
24- CONFIG += c++17
24+ CONFIG += debug_and_release warn_on strict_c++ c++17
2525
2626TARGET = custom-toolbox
2727TEMPLATE = 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
You can’t perform that action at this time.
0 commit comments