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:
Rasmus Karlsson 2017-05-27 15:47:04 +02:00
parent 909154bd8b
commit 896cf7a03b
5 changed files with 16 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1 @@
../.clang-format

1
twitch/.clang-format Symbolic link
View file

@ -0,0 +1 @@
../.clang-format

1
util/.clang-format Symbolic link
View file

@ -0,0 +1 @@
../.clang-format

1
widgets/.clang-format Symbolic link
View file

@ -0,0 +1 @@
../.clang-format