1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Resolves some warnings for Android version (#13862)

This commit is contained in:
Muhammad Rifqi Priyo Susanto 2023-11-06 01:02:01 +07:00 committed by GitHub
parent adec16790b
commit 7213ff7a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -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) {