mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Version 4.9.4: Workaround MSVC optimization bug.
When adding some de-optimizing code, like logging etc, the issue disappears. This volatile workaround looks like it works.
This commit is contained in:
parent
b39bf11d9e
commit
dff168c62e
1 changed files with 5 additions and 0 deletions
|
@ -194,6 +194,11 @@ UnreadState MainList::unreadState() const {
|
|||
result.chatsMuted = result.chats;
|
||||
result.marksMuted = result.marks;
|
||||
}
|
||||
volatile auto touch = _unreadState.marks + _unreadState.marksMuted
|
||||
+ _unreadState.messages + _unreadState.messagesMuted
|
||||
+ _unreadState.chats + _unreadState.chatsMuted
|
||||
+ _unreadState.reactions + _unreadState.reactionsMuted
|
||||
+ _unreadState.mentions;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue