Treat reorder warnings as errors (#3944)
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user