Skip to content

Commit 7981a1c

Browse files
committed
disable warning C4858
1 parent 6111722 commit 7981a1c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ui_*.h
2828
*.jsc
2929
Makefile*
3030
*build-*
31+
*build_*
3132

3233
# Qt unit tests
3334
target_wrapper.*

src/libipc/waiter.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,16 @@ class waiter {
6464
}
6565

6666
bool notify() noexcept {
67-
std::lock_guard<ipc::sync::mutex>{lock_}; // barrier
67+
{
68+
IPC_UNUSED_ std::lock_guard<ipc::sync::mutex> barrier{lock_}; // barrier
69+
}
6870
return cond_.notify(lock_);
6971
}
7072

7173
bool broadcast() noexcept {
72-
std::lock_guard<ipc::sync::mutex>{lock_}; // barrier
74+
{
75+
IPC_UNUSED_ std::lock_guard<ipc::sync::mutex> barrier{lock_}; // barrier
76+
}
7377
return cond_.broadcast(lock_);
7478
}
7579

0 commit comments

Comments
 (0)