diff --git a/src/gfxstream/guest/connection-manager/GfxStreamConnectionManager.cpp b/src/gfxstream/guest/connection-manager/GfxStreamConnectionManager.cpp index 7b440ccf657..3cb61de443c 100644 --- a/src/gfxstream/guest/connection-manager/GfxStreamConnectionManager.cpp +++ b/src/gfxstream/guest/connection-manager/GfxStreamConnectionManager.cpp @@ -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,