Commit 6340c164 authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Merge pull request #490 from asit-dhal/issue-488

Issue-488: warning for missing enumeration value
parents f546036e e35c7fd0
...@@ -31,6 +31,8 @@ std::string conditional_log(const bool flag, const T& what, spdlog::level::level ...@@ -31,6 +31,8 @@ std::string conditional_log(const bool flag, const T& what, spdlog::level::level
case spdlog::level::critical: case spdlog::level::critical:
oss_logger.critical_if(flag, what); oss_logger.critical_if(flag, what);
break; break;
default:
break;
} }
return oss.str().substr(0, oss.str().length() - spdlog::details::os::eol_size); 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 ...@@ -66,6 +68,8 @@ std::string conditional_log_varags(spdlog::level::level_enum logger_level, const
case spdlog::level::critical: case spdlog::level::critical:
oss_logger.critical_if(flag, fmt, arg1, args...); oss_logger.critical_if(flag, fmt, arg1, args...);
break; break;
default:
break;
} }
return oss.str().substr(0, oss.str().length() - spdlog::details::os::eol_size); 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 ...@@ -103,6 +107,8 @@ std::wstring conditional_log_varags(spdlog::level::level_enum logger_level, cons
case spdlog::level::critical: case spdlog::level::critical:
oss_logger.critical_if(flag, fmt, arg1, args...); oss_logger.critical_if(flag, fmt, arg1, args...);
break; break;
default:
break;
} }
return oss.str().substr(0, oss.str().length() - spdlog::details::os::eol_size); return oss.str().substr(0, oss.str().length() - spdlog::details::os::eol_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment