Skip to content

Commit 9602188

Browse files
keithaaryanshukla
authored andcommitted
[lldb][NFC] Add maybe_unused to err used in asserts (llvm#98055)
1 parent 0373c03 commit 9602188

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/tools/debugserver/source/PThreadMutex.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ class PThreadMutex {
7878
};
7979

8080
PThreadMutex() {
81-
int err;
81+
[[maybe_unused]] int err;
8282
err = ::pthread_mutex_init(&m_mutex, NULL);
8383
assert(err == 0);
8484
}
8585

8686
PThreadMutex(int type) {
87-
int err;
87+
[[maybe_unused]] int err;
8888
::pthread_mutexattr_t attr;
8989
err = ::pthread_mutexattr_init(&attr);
9090
assert(err == 0);
@@ -97,7 +97,7 @@ class PThreadMutex {
9797
}
9898

9999
~PThreadMutex() {
100-
int err;
100+
[[maybe_unused]] int err;
101101
err = ::pthread_mutex_destroy(&m_mutex);
102102
if (err != 0) {
103103
err = Unlock();

0 commit comments

Comments
 (0)