disable warning C4858

This commit is contained in:
mutouyun 2023-09-23 12:47:00 +08:00
parent 6111722534
commit 6e635934c1
2 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -28,6 +28,7 @@ ui_*.h
*.jsc *.jsc
Makefile* Makefile*
*build-* *build-*
*build_*
# Qt unit tests # Qt unit tests
target_wrapper.* target_wrapper.*

View File

@ -64,12 +64,16 @@ public:
} }
bool notify() noexcept { bool notify() noexcept {
std::lock_guard<ipc::sync::mutex>{lock_}; // barrier {
IPC_UNUSED_ std::lock_guard<ipc::sync::mutex> barrier{lock_}; // barrier
}
return cond_.notify(lock_); return cond_.notify(lock_);
} }
bool broadcast() noexcept { bool broadcast() noexcept {
std::lock_guard<ipc::sync::mutex>{lock_}; // barrier {
IPC_UNUSED_ std::lock_guard<ipc::sync::mutex> barrier{lock_}; // barrier
}
return cond_.broadcast(lock_); return cond_.broadcast(lock_);
} }