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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user