Version 4.9.5: Fix build with GCC.

This commit is contained in:
John Preston 2023-09-05 13:10:03 +04:00
parent 0079a18e97
commit 9f0a756f71
2 changed files with 4 additions and 2 deletions

View File

@ -194,11 +194,14 @@ UnreadState MainList::unreadState() const {
result.chatsMuted = result.chats;
result.marksMuted = result.marks;
}
volatile auto touch = _unreadState.marks + _unreadState.marksMuted
#ifdef Q_OS_WIN
[[maybe_unused]] volatile auto touch = 0
+ _unreadState.marks + _unreadState.marksMuted
+ _unreadState.messages + _unreadState.messagesMuted
+ _unreadState.chats + _unreadState.chatsMuted
+ _unreadState.reactions + _unreadState.reactionsMuted
+ _unreadState.mentions;
#endif // Q_OS_WIN
return result;
}

View File

@ -1261,7 +1261,6 @@ void AttachWebView::show(
const auto buttons = (hasSettings ? Button::Settings : Button::None)
| (hasOpenBot ? Button::OpenBot : Button::None)
| (hasRemoveFromMenu ? Button::RemoveFromMenu : Button::None);
const auto bot = _bot;
_lastShownUrl = url;
_lastShownQueryId = queryId;