mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Add werr flag to bail on error
Add more specific warning flags Add .clang-format symlinks to each source folder
This commit is contained in:
parent
909154bd8b
commit
896cf7a03b
5 changed files with 16 additions and 0 deletions
|
@ -19,6 +19,12 @@ TEMPLATE = app
|
||||||
DEFINES += QT_DEPRECATED_WARNINGS
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
DEFINES += IRC_NAMESPACE=Communi
|
DEFINES += IRC_NAMESPACE=Communi
|
||||||
|
|
||||||
|
# Define warning flags for Chatterino
|
||||||
|
QMAKE_CXXFLAGS_WARN_ON = -Wall
|
||||||
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-function
|
||||||
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-switch
|
||||||
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-deprecated-declarations
|
||||||
|
|
||||||
# do not use windows min/max macros
|
# do not use windows min/max macros
|
||||||
win32 {
|
win32 {
|
||||||
DEFINES += NOMINMAX
|
DEFINES += NOMINMAX
|
||||||
|
@ -166,3 +172,9 @@ macx {
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
forms/accountpopupform.ui
|
forms/accountpopupform.ui
|
||||||
|
|
||||||
|
werr {
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
|
||||||
|
message("Enabling error on warning")
|
||||||
|
}
|
||||||
|
|
1
messages/.clang-format
Symbolic link
1
messages/.clang-format
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../.clang-format
|
1
twitch/.clang-format
Symbolic link
1
twitch/.clang-format
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../.clang-format
|
1
util/.clang-format
Symbolic link
1
util/.clang-format
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../.clang-format
|
1
widgets/.clang-format
Symbolic link
1
widgets/.clang-format
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../.clang-format
|
Loading…
Reference in a new issue