Treat reorder warnings as errors (#3944)

This commit is contained in:
pajlada 2022-09-03 18:12:44 +02:00 committed by GitHub
parent 8f551519b1
commit 46efa5df3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -774,6 +774,7 @@ else ()
-Wno-strict-aliasing -Wno-strict-aliasing
-Werror=return-type -Werror=return-type
-Werror=reorder
) )
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")

View file

@ -30,8 +30,8 @@ namespace chatterino {
TwitchIrcServer::TwitchIrcServer() TwitchIrcServer::TwitchIrcServer()
: whispersChannel(new Channel("/whispers", Channel::Type::TwitchWhispers)) : whispersChannel(new Channel("/whispers", Channel::Type::TwitchWhispers))
, mentionsChannel(new Channel("/mentions", Channel::Type::TwitchMentions)) , mentionsChannel(new Channel("/mentions", Channel::Type::TwitchMentions))
, watchingChannel(Channel::getEmpty(), Channel::Type::TwitchWatching)
, liveChannel(new Channel("/live", Channel::Type::TwitchLive)) , liveChannel(new Channel("/live", Channel::Type::TwitchLive))
, watchingChannel(Channel::getEmpty(), Channel::Type::TwitchWatching)
{ {
this->initializeIrc(); this->initializeIrc();

View file

@ -122,8 +122,8 @@ namespace {
ChannelView::ChannelView(BaseWidget *parent, Split *split, Context context) ChannelView::ChannelView(BaseWidget *parent, Split *split, Context context)
: BaseWidget(parent) : BaseWidget(parent)
, scrollBar_(new Scrollbar(this))
, split_(split) , split_(split)
, scrollBar_(new Scrollbar(this))
, context_(context) , context_(context)
{ {
this->setMouseTracking(true); this->setMouseTracking(true);