fix unused warning message

This commit is contained in:
gabime 2017-03-28 02:05:59 +03:00
parent 397d4866b3
commit 5a8cecdfb6

View File

@ -1,14 +1,16 @@
#include "includes.h" #include "includes.h"
void prepare_logdir() void prepare_logdir()
{ {
spdlog::drop_all(); spdlog::drop_all();
#ifdef _WIN32 #ifdef _WIN32
system("if not exist logs mkdir logs"); system("if not exist logs mkdir logs");
system("del /F /Q logs\\*"); system("del /F /Q logs\\*");
#else #else
system("mkdir -p logs"); auto rv = system("mkdir -p logs");
system("rm -f logs/*"); rv = system("rm -f logs/*");
(void)rv;
#endif #endif
} }