From 7213ff7a007a94267d50bf105e3c504cc70f184e Mon Sep 17 00:00:00 2001 From: Muhammad Rifqi Priyo Susanto Date: Mon, 6 Nov 2023 01:02:01 +0700 Subject: [PATCH] Resolves some warnings for Android version (#13862) --- src/client/particles.h | 1 - src/main.cpp | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/client/particles.h b/src/client/particles.h index 283267eb5..8b7c30946 100644 --- a/src/client/particles.h +++ b/src/client/particles.h @@ -169,7 +169,6 @@ private: LocalPlayer *m_player; ParticleSpawnerParameters p; std::vector m_texpool; - size_t m_texcount; std::vector m_spawntimes; u16 m_attached_id; }; diff --git a/src/main.cpp b/src/main.cpp index 898ac8f61..314dac04c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -550,8 +550,7 @@ static bool create_userdata_path() } namespace { - std::string findProgram(const char *name) - { + [[maybe_unused]] std::string findProgram(const char *name) { char *path_c = getenv("PATH"); if (!path_c) return ""; @@ -571,8 +570,9 @@ namespace { #ifdef _WIN32 const char *debuggerNames[] = {"gdb.exe", "lldb.exe"}; #else - const char *debuggerNames[] = {"gdb", "lldb"}; + [[maybe_unused]] const char *debuggerNames[] = {"gdb", "lldb"}; #endif + template void getDebuggerArgs(T &out, int i) { if (i == 0) {