mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48: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
|
||||
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)
|
||||
InitAndroid();
|
||||
#endif
|
||||
|
@ -4285,6 +4275,14 @@ int main(int argc, const char **argv)
|
|||
#if defined(CONF_PLATFORM_ANDROID)
|
||||
pStdoutLogger = std::shared_ptr<ILogger>(log_logger_android());
|
||||
#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)
|
||||
{
|
||||
pStdoutLogger = std::shared_ptr<ILogger>(log_logger_stdout());
|
||||
|
|
Loading…
Reference in a new issue