mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
gcc warnings fix
This commit is contained in:
@@ -37,9 +37,9 @@ int main(int argc, char* argv[])
|
||||
auto delta = system_clock::now() - start;
|
||||
auto delta_d = duration_cast<duration<double>> (delta).count();
|
||||
|
||||
cout << "Total:" << format(howmany) << endl;
|
||||
cout << "Delta:" << format(delta_d) << endl;
|
||||
cout << "Rate:" << format(howmany / delta_d) << "/sec" << endl;
|
||||
cout_logger.info("Total:") << format(howmany);
|
||||
cout_logger.info("Delta:") << format(delta_d);
|
||||
cout_logger.info("Rate:") << format(howmany / delta_d) << "/sec";
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
#include "c11log/sinks/file_sinks.h"
|
||||
using namespace std;
|
||||
|
||||
int main2(int, char* [])
|
||||
int main(int, char* [])
|
||||
{
|
||||
|
||||
auto console = c11log::factory::stdout_logger();
|
||||
|
Reference in New Issue
Block a user