From 370408e8d796adabaa84e4e2d488d529f9f1b38f Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Fri, 21 Jun 2024 15:45:26 -0700 Subject: Binder: enable/fix some warnings Bug: 341997808 Test: mma Change-Id: Ibd44eda768a714e85399a15f3c8e534d715f87ce Merged-In: Ibd44eda768a714e85399a15f3c8e534d715f87ce --- libs/binder/IPCThreadState.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/binder/IPCThreadState.cpp') 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 gHaveTLS(false); static pthread_key_t gTLS = 0; static std::atomic gShutdown = false; -- cgit v1.2.3-59-g8ed1b