From 72c0b1e9c57b7a678c20cbba9dfc39b73146d7fc Mon Sep 17 00:00:00 2001 From: yinchuang Date: Tue, 28 Mar 2023 08:31:04 +0000 Subject: [PATCH] Fix llvm-15 build error Signed-off-by: yinchuang Change-Id: If641aa5e86b9cac3cd1fc2b65b72228e60ea8ab5 --- .../entry/src/main/cpp/render/plugin_render.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arkui/ace_ets_xcomponent/entry/src/main/cpp/render/plugin_render.cpp b/arkui/ace_ets_xcomponent/entry/src/main/cpp/render/plugin_render.cpp index 9a257be1d..3dd7f54fc 100644 --- a/arkui/ace_ets_xcomponent/entry/src/main/cpp/render/plugin_render.cpp +++ b/arkui/ace_ets_xcomponent/entry/src/main/cpp/render/plugin_render.cpp @@ -230,9 +230,9 @@ void PluginRender::DispatchTouchEvent(OH_NativeXComponent* component, void* wind OH_NativeXComponent_TouchPointToolType toolType = OH_NativeXComponent_TouchPointToolType::OH_NATIVEXCOMPONENT_TOOL_TYPE_UNKNOWN; float tiltX = 123.0; float tiltY = 321.0; - int32_t ret1; - int32_t ret2; - int32_t ret3; + [[maybe_unused]] int32_t ret1; + [[maybe_unused]] int32_t ret2; + [[maybe_unused]] int32_t ret3; ret1 = OH_NativeXComponent_GetTouchPointToolType(component, i, &toolType); ret2 = OH_NativeXComponent_GetTouchPointTiltX(component, i, &tiltX); ret3 = OH_NativeXComponent_GetTouchPointTiltY(component, i, &tiltY); @@ -294,7 +294,7 @@ napi_value PluginRender::NapiChangeShape(napi_env env, napi_callback_info info) LOGE("NapiChangeShape"); napi_value exportInstance; napi_value thisArg; - napi_status status; + [[maybe_unused]] napi_status status; OH_NativeXComponent *nativeXComponent = nullptr; int32_t ret; -- GitLab