diff --git a/hdf_service/distributed_audio/mfc_test/distributedaudiotest.cpp b/hdf_service/distributed_audio/mfc_test/distributedaudiotest.cpp index de2c73065f999024665ba945a8310ecc0a7b93d0..51cfa1fe917649bfe21c2f0b287747dcb0d9a26c 100644 --- a/hdf_service/distributed_audio/mfc_test/distributedaudiotest.cpp +++ b/hdf_service/distributed_audio/mfc_test/distributedaudiotest.cpp @@ -46,11 +46,11 @@ struct Response { }; using namespace OHOS::DistributedHardware; -AudioManager *g_manager = nullptr; -AudioAdapter *g_adapter = nullptr; -AudioRender *g_render = nullptr; -AudioCapture *g_capture = nullptr; -AudioAdapterDescriptor *g_devices = nullptr; +static AudioManager *g_manager = nullptr; +static AudioAdapter *g_adapter = nullptr; +static AudioRender *g_render = nullptr; +static AudioCapture *g_capture = nullptr; +static AudioAdapterDescriptor *g_devices = nullptr; static constexpr const char* PLAY_THREAD = "playThread"; static constexpr const char* CAPTURE_THREAD = "captureThread";