1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Fix some compiler warnings (#15596)

This commit is contained in:
Lars Müller
2024-12-26 11:29:00 +01:00
committed by GitHub
parent d2a7875b5b
commit 412cc96bc9
7 changed files with 12 additions and 19 deletions

View File

@@ -105,7 +105,7 @@ void AndroidLogOutput::logRaw(LogLevel lev, std::string_view line)
static_assert(ARRLEN(g_level_to_android) == LL_MAX,
"mismatch between android and internal loglevels");
__android_log_print(g_level_to_android[lev], PROJECT_NAME_C, "%.*s",
line.size(), line.data());
static_cast<int>(line.size()), line.data());
}
#endif