From ef219e0635112903a2395570a22a80ba959c1db7 Mon Sep 17 00:00:00 2001 From: ACh Sulfate Date: Sun, 23 Jul 2023 22:36:23 +0800 Subject: [PATCH] chore: reduce compiler warnings --- app/src/main/cpp/CMakeLists.txt | 1 + app/src/main/cpp/utils/MemoryUtils.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/CMakeLists.txt b/app/src/main/cpp/CMakeLists.txt index ba846626fc..4fe61cc672 100644 --- a/app/src/main/cpp/CMakeLists.txt +++ b/app/src/main/cpp/CMakeLists.txt @@ -47,6 +47,7 @@ add_subdirectory(../../../../libs/fmt fmt) SET_OPTION(DEX_BUILDER_BUILD_SHARED OFF) SET_OPTION(LSPLANT_BUILD_SHARED OFF) add_subdirectory(../../../../libs/LSPlant/lsplant/src/main/jni lsplant_static) +target_compile_options(dex_builder_static PRIVATE "-Wno-c++2b-extensions") target_compile_definitions(fmt-header-only INTERFACE FMT_STATIC_THOUSANDS_SEPARATOR=1 FMT_USE_FLOAT=0 FMT_USE_DOUBLE=0 FMT_USE_LONG_DOUBLE=0) diff --git a/app/src/main/cpp/utils/MemoryUtils.h b/app/src/main/cpp/utils/MemoryUtils.h index 9f3d06504f..b71376b115 100644 --- a/app/src/main/cpp/utils/MemoryUtils.h +++ b/app/src/main/cpp/utils/MemoryUtils.h @@ -43,7 +43,6 @@ struct MemoryMapEntry { std::string path; }; -[[deprecated("too slow")]] std::vector GetProcessMemoryMaps(uint32_t pid = 0); std::vector GetMemoryProtects(const std::vector& maps, const std::vector& addresses);