summaryrefslogtreecommitdiff
path: root/libs/binder/IPCThreadState.cpp
diff options
context:
space:
mode:
author Tomasz Wasilczyk <twasilczyk@google.com> 2024-06-21 15:45:26 -0700
committer Tomasz Wasilczyk <twasilczyk@google.com> 2024-07-03 17:34:25 +0000
commit370408e8d796adabaa84e4e2d488d529f9f1b38f (patch)
tree6a0db98b2bff2067a142a39edb71b9ca03abb45c /libs/binder/IPCThreadState.cpp
parent79887b432800ba1907b38b33776b86cd76655d27 (diff)
Binder: enable/fix some warnings
Bug: 341997808 Test: mma Change-Id: Ibd44eda768a714e85399a15f3c8e534d715f87ce Merged-In: Ibd44eda768a714e85399a15f3c8e534d715f87ce
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
-rw-r--r--libs/binder/IPCThreadState.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index 94f947fce1..984c93d370 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -285,7 +285,9 @@ static const void* printCommand(std::ostream& out, const void* _cmd) {
return cmd;
}
+LIBBINDER_IGNORE("-Wzero-as-null-pointer-constant")
static pthread_mutex_t gTLSMutex = PTHREAD_MUTEX_INITIALIZER;
+LIBBINDER_IGNORE_END()
static std::atomic<bool> gHaveTLS(false);
static pthread_key_t gTLS = 0;
static std::atomic<bool> gShutdown = false;