diff --git a/source/lib/rocprofiler-sdk/counters/controller.cpp b/source/lib/rocprofiler-sdk/counters/controller.cpp index 23ec15f613..b13b6b196f 100644 --- a/source/lib/rocprofiler-sdk/counters/controller.cpp +++ b/source/lib/rocprofiler-sdk/counters/controller.cpp @@ -93,10 +93,11 @@ CounterController::configure_agent_collection(rocprofiler_context_id_t } ctx.agent_counter_collection->agent_data.emplace_back(); - ctx.agent_counter_collection->agent_data.back().callback_data = {.ptr = user_data}; - ctx.agent_counter_collection->agent_data.back().agent_id = agent_id; - ctx.agent_counter_collection->agent_data.back().cb = cb; - ctx.agent_counter_collection->agent_data.back().buffer = buffer_id; + ctx.agent_counter_collection->agent_data.back().callback_data = + rocprofiler_user_data_t{.ptr = user_data}; + ctx.agent_counter_collection->agent_data.back().agent_id = agent_id; + ctx.agent_counter_collection->agent_data.back().cb = cb; + ctx.agent_counter_collection->agent_data.back().buffer = buffer_id; return ROCPROFILER_STATUS_SUCCESS; } @@ -187,4 +188,4 @@ get_profile_config(rocprofiler_profile_config_id_t id) } } } // namespace counters -} // namespace rocprofiler \ No newline at end of file +} // namespace rocprofiler