1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-16 01:37:58 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Gabi Melman
c1af0a3f21
Merge pull request #1882 from imsherlock/v1.x
add default cases
2021-03-20 21:02:57 +02:00
Ryan Sherlock
bb5e1ee2f9 Removing changes to bundled fmt
Removing changes to the bundled fmt library. The default case
statements will be changed in the upstream library.

Signed-off-by: Ryan Sherlock <sherlock@loftorbital.com>
2021-03-20 09:22:40 -07:00
Ryan Sherlock
3aee89c8fd add default cases
Adding default case for cases where the compilation flag
-Wswitch-default is present on the command line when spdlog is
included in external projects.

Signed-off-by: Ryan Sherlock <ryan.m.sherlock@gmail.com>
2021-03-19 10:06:09 -07:00

View File

@ -106,6 +106,8 @@ SPDLOG_INLINE void ansicolor_sink<ConsoleMutex>::set_color_mode(color_mode mode)
case color_mode::never:
should_do_colors_ = false;
return;
default:
should_do_colors_ = false;
}
}