mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 11:29:01 +08:00
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>
This commit is contained in:

committed by
Ryan Sherlock

parent
44e1f9f682
commit
3aee89c8fd
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user