We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0373c03 commit 9602188Copy full SHA for 9602188
lldb/tools/debugserver/source/PThreadMutex.h
@@ -78,13 +78,13 @@ class PThreadMutex {
78
};
79
80
PThreadMutex() {
81
- int err;
+ [[maybe_unused]] int err;
82
err = ::pthread_mutex_init(&m_mutex, NULL);
83
assert(err == 0);
84
}
85
86
PThreadMutex(int type) {
87
88
::pthread_mutexattr_t attr;
89
err = ::pthread_mutexattr_init(&attr);
90
@@ -97,7 +97,7 @@ class PThreadMutex {
97
98
99
~PThreadMutex() {
100
101
err = ::pthread_mutex_destroy(&m_mutex);
102
if (err != 0) {
103
err = Unlock();
0 commit comments