mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix unused variable Silent
in client.cpp
on Android
This commit is contained in:
parent
4a2a23530c
commit
dfae99da76
|
@ -4262,16 +4262,6 @@ int main(int argc, const char **argv)
|
||||||
#endif
|
#endif
|
||||||
CCmdlineFix CmdlineFix(&argc, &argv);
|
CCmdlineFix CmdlineFix(&argc, &argv);
|
||||||
|
|
||||||
bool Silent = false;
|
|
||||||
|
|
||||||
for(int i = 1; i < argc; i++)
|
|
||||||
{
|
|
||||||
if(str_comp("-s", argv[i]) == 0 || str_comp("--silent", argv[i]) == 0)
|
|
||||||
{
|
|
||||||
Silent = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(CONF_PLATFORM_ANDROID)
|
#if defined(CONF_PLATFORM_ANDROID)
|
||||||
InitAndroid();
|
InitAndroid();
|
||||||
#endif
|
#endif
|
||||||
|
@ -4285,6 +4275,14 @@ int main(int argc, const char **argv)
|
||||||
#if defined(CONF_PLATFORM_ANDROID)
|
#if defined(CONF_PLATFORM_ANDROID)
|
||||||
pStdoutLogger = std::shared_ptr<ILogger>(log_logger_android());
|
pStdoutLogger = std::shared_ptr<ILogger>(log_logger_android());
|
||||||
#else
|
#else
|
||||||
|
bool Silent = false;
|
||||||
|
for(int i = 1; i < argc; i++)
|
||||||
|
{
|
||||||
|
if(str_comp("-s", argv[i]) == 0 || str_comp("--silent", argv[i]) == 0)
|
||||||
|
{
|
||||||
|
Silent = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
if(!Silent)
|
if(!Silent)
|
||||||
{
|
{
|
||||||
pStdoutLogger = std::shared_ptr<ILogger>(log_logger_stdout());
|
pStdoutLogger = std::shared_ptr<ILogger>(log_logger_stdout());
|
||||||
|
|
Loading…
Reference in a new issue