gfxstream: silence non-null Clang check on Android

Workaround:

src/gfxstream/guest/connection-manager/GfxStreamConnectionManager.cpp:82:51:
error: null passed to a callee that requires a non-null argument [-Werror,-Wnonnull]
   82 |     tss_set(gfxstream_connection_manager_tls_key, nullptr);
      |                                                   ^~~~~~~

Ultimately, the Bionic headers look wrong.  Passing NULL to tss_set
is completely legit.

Reviewed-by: David Gilhooley <djgilhooley.gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38632>
This commit is contained in:
Gurchetan Singh
2025-11-24 09:32:27 -08:00
parent 7e72d392d7
commit 0a231dfb40

View File

@@ -79,7 +79,8 @@ void GfxStreamConnectionManager::resetThreadLocalInstance() {
}
delete tls;
tss_set(gfxstream_connection_manager_tls_key, nullptr);
void* null_ptr = nullptr;
tss_set(gfxstream_connection_manager_tls_key, null_ptr);
}
GfxStreamConnectionManager::GfxStreamConnectionManager(GfxStreamTransportType type,