diff --git a/chatterino.pro b/chatterino.pro index 9cab5091e..3c8488cfd 100644 --- a/chatterino.pro +++ b/chatterino.pro @@ -19,6 +19,12 @@ TEMPLATE = app DEFINES += QT_DEPRECATED_WARNINGS 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 win32 { DEFINES += NOMINMAX @@ -166,3 +172,9 @@ macx { FORMS += \ forms/accountpopupform.ui + +werr { + QMAKE_CXXFLAGS += -Werror + + message("Enabling error on warning") +} diff --git a/messages/.clang-format b/messages/.clang-format new file mode 120000 index 000000000..7cab60ce3 --- /dev/null +++ b/messages/.clang-format @@ -0,0 +1 @@ +../.clang-format \ No newline at end of file diff --git a/twitch/.clang-format b/twitch/.clang-format new file mode 120000 index 000000000..7cab60ce3 --- /dev/null +++ b/twitch/.clang-format @@ -0,0 +1 @@ +../.clang-format \ No newline at end of file diff --git a/util/.clang-format b/util/.clang-format new file mode 120000 index 000000000..7cab60ce3 --- /dev/null +++ b/util/.clang-format @@ -0,0 +1 @@ +../.clang-format \ No newline at end of file diff --git a/widgets/.clang-format b/widgets/.clang-format new file mode 120000 index 000000000..7cab60ce3 --- /dev/null +++ b/widgets/.clang-format @@ -0,0 +1 @@ +../.clang-format \ No newline at end of file