fixed gcc shadow warnings

This commit is contained in:
gabime
2017-06-29 18:14:17 +03:00
parent f06f3f1468
commit 4371092309
2 changed files with 1 additions and 5 deletions

View File

@@ -32,10 +32,7 @@ int main(int, char*[])
console->error("Some error message with arg{}..", 1);
// Conditional logging example
auto i = 2;
console->info_if(i < 20, "Welcome to spdlog conditional logging!");
console->warn_if(i != 0, "an important message");
console->critical_if(i != 2, "a false warning which won't show up");
console->info_if(true, "Welcome to spdlog conditional logging!");
// Formatting examples
console->warn("Easy padding in numbers like {:08d}", 12);