From 31b4552c07cc0216a0d1834c3c67c645129332ad Mon Sep 17 00:00:00 2001 From: eho <2220386943@qq.com> Date: Tue, 15 Oct 2024 16:39:20 +0800 Subject: [PATCH] adapt gcc 4.8.5 --- pmu/pmu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmu/pmu.cpp b/pmu/pmu.cpp index 207d4fb..d2f4c9f 100644 --- a/pmu/pmu.cpp +++ b/pmu/pmu.cpp @@ -331,7 +331,7 @@ static void PmuTaskAttrFree(PmuTaskAttr *taskAttr) int PmuOpen(enum PmuTaskType collectType, struct PmuAttr *attr) { SetWarn(SUCCESS); - PmuAttr copiedAttr = {*attr}; + PmuAttr copiedAttr = *attr; pair previousEventList = {0, nullptr}; try { auto err = CheckAttr(collectType, attr); -- Gitee