Browse Source

Resolves some warnings for Android version (#13862)

Muhammad Rifqi Priyo Susanto 7 months ago
parent
commit
7213ff7a00
2 changed files with 3 additions and 4 deletions
  1. 0 1
      src/client/particles.h
  2. 3 3
      src/main.cpp

+ 0 - 1
src/client/particles.h

@@ -169,7 +169,6 @@ private:
 	LocalPlayer *m_player;
 	ParticleSpawnerParameters p;
 	std::vector<ClientParticleTexture> m_texpool;
-	size_t m_texcount;
 	std::vector<float> m_spawntimes;
 	u16 m_attached_id;
 };

+ 3 - 3
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 <class T>
 	void getDebuggerArgs(T &out, int i) {
 		if (i == 0) {