From f44c91ab51546b5daab676e020a55e1115729475 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Mon, 12 May 2025 18:59:23 +0800 Subject: [PATCH] fix: ubuntu unused --- src/MaaCore/Controller/AdbController.cpp | 2 +- src/MaaCore/Controller/AdbController.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MaaCore/Controller/AdbController.cpp b/src/MaaCore/Controller/AdbController.cpp index 0739f146ed..8e6c834938 100644 --- a/src/MaaCore/Controller/AdbController.cpp +++ b/src/MaaCore/Controller/AdbController.cpp @@ -252,7 +252,7 @@ void asst::AdbController::set_mumu_package(const std::string& client_type) #endif } -void asst::AdbController::init_ld_extras(const AdbCfg& adb_cfg) +void asst::AdbController::init_ld_extras([[maybe_unused]] const AdbCfg& adb_cfg) { #if !ASST_WITH_EMULATOR_EXTRAS Log.error("MaaCore is not compiled with ASST_WITH_EMULATOR_EXTRAS"); diff --git a/src/MaaCore/Controller/AdbController.h b/src/MaaCore/Controller/AdbController.h index 7808b465e5..fef46d47d4 100644 --- a/src/MaaCore/Controller/AdbController.h +++ b/src/MaaCore/Controller/AdbController.h @@ -96,7 +96,7 @@ protected: static int get_mumu_index(const std::string& address); void init_mumu_extras(const AdbCfg& adb_cfg, const std::string& address); void set_mumu_package(const std::string& client_type); - void init_ld_extras(const AdbCfg& adb_cfg); + void init_ld_extras([[maybe_unused]] const AdbCfg& adb_cfg); // 转换 data 中的 CRLF 为 LF:有些模拟器自带的 adb,exec-out 输出的 \n 会被替换成 \r\n, // 导致解码错误,所以这里转一下回来(点名批评 mumu 和雷电)