From 30da55b3666b6e07b6cda3e80aab328fdb50ef19 Mon Sep 17 00:00:00 2001 From: SivaLee Date: Fri, 4 Nov 2022 19:05:33 +0800 Subject: [PATCH] fix compile errors for m60 platform Signed-off-by: SivaLee Change-Id: I1375b8a74db5926ec1eaa0580a9ff4b1226fb270 --- .../pttypesbreakpointparseid_fuzzer.cpp | 5 ++++- .../pttypesbreakpointtostring_fuzzer.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/fuzztest/pttypesbreakpointparseid_fuzzer/pttypesbreakpointparseid_fuzzer.cpp b/test/fuzztest/pttypesbreakpointparseid_fuzzer/pttypesbreakpointparseid_fuzzer.cpp index 77fe9a7b..956f0005 100644 --- a/test/fuzztest/pttypesbreakpointparseid_fuzzer/pttypesbreakpointparseid_fuzzer.cpp +++ b/test/fuzztest/pttypesbreakpointparseid_fuzzer/pttypesbreakpointparseid_fuzzer.cpp @@ -30,7 +30,10 @@ namespace OHOS { if (size <= 0) { return; } - BreakpointDetails details = { .line_ = size, .column_ = size, .url_ = std::string((const char*)data, size)}; + BreakpointDetails details; + details.line_ = size; + details.column_ = size; + details.url_ = std::string((const char*)data, size); BreakpointId id = BreakpointDetails::ToString(details); BreakpointDetails::ParseBreakpointId(id, &details); JSNApi::DestroyJSVM(vm); diff --git a/test/fuzztest/pttypesbreakpointtostring_fuzzer/pttypesbreakpointtostring_fuzzer.cpp b/test/fuzztest/pttypesbreakpointtostring_fuzzer/pttypesbreakpointtostring_fuzzer.cpp index 4283e2e0..c77bbd53 100644 --- a/test/fuzztest/pttypesbreakpointtostring_fuzzer/pttypesbreakpointtostring_fuzzer.cpp +++ b/test/fuzztest/pttypesbreakpointtostring_fuzzer/pttypesbreakpointtostring_fuzzer.cpp @@ -30,7 +30,10 @@ namespace OHOS { if (size <= 0) { return; } - BreakpointDetails details = { .line_ = size, .column_ = size, .url_ = std::string((const char*)data, size)}; + BreakpointDetails details; + details.line_ = size; + details.column_ = size; + details.url_ = std::string((const char*)data, size); BreakpointId id = BreakpointDetails::ToString(details); JSNApi::DestroyJSVM(vm); } -- Gitee