Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
c4f82139
Commit
c4f82139
authored
Aug 03, 2020
by
Harald Sitter
🏳️🌈
Browse files
smb: fix sequence-point warning
tail was being modified twice
parent
e6b1724c
Changes
1
Show whitespace changes
Inline
Side-by-side
smb/transfer.cpp
View file @
c4f82139
...
...
@@ -72,7 +72,7 @@ TransferSegment *TransferRingBuffer::pop()
void
TransferRingBuffer
::
unpop
()
{
std
::
unique_lock
<
std
::
mutex
>
lock
(
m_mutex
);
tail
=
++
tail
%
m_capacity
;
tail
=
(
tail
+
1
)
%
m_capacity
;
m_cond
.
notify_all
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment