diff --git a/README.md b/README.md index e3ae7e0a..e2fd18ae 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Very fast, header only, C++ logging library. [![Build Status](https://travis-ci. * Homebrew: `brew install spdlog` * FreeBSD: `cd /usr/ports/devel/spdlog/ && make install clean` * Fedora: `yum install spdlog` +* Gentoo: `emerge dev-libs/spdlog` * Arch Linux: `pacman -S spdlog-git` * vcpkg: `vcpkg install spdlog` diff --git a/tests/cond_logging.cpp b/tests/cond_logging.cpp index 37b0c4c6..dd5a6ced 100644 --- a/tests/cond_logging.cpp +++ b/tests/cond_logging.cpp @@ -31,6 +31,8 @@ std::string conditional_log(const bool flag, const T& what, spdlog::level::level case spdlog::level::critical: oss_logger.critical_if(flag, what); break; + default: + break; } return oss.str().substr(0, oss.str().length() - spdlog::details::os::eol_size); @@ -66,6 +68,8 @@ std::string conditional_log_varags(spdlog::level::level_enum logger_level, const case spdlog::level::critical: oss_logger.critical_if(flag, fmt, arg1, args...); break; + default: + break; } return oss.str().substr(0, oss.str().length() - spdlog::details::os::eol_size); @@ -103,6 +107,8 @@ std::wstring conditional_log_varags(spdlog::level::level_enum logger_level, cons case spdlog::level::critical: oss_logger.critical_if(flag, fmt, arg1, args...); break; + default: + break; } return oss.str().substr(0, oss.str().length() - spdlog::details::os::eol_size);