summaryrefslogtreecommitdiff
path: root/src/buildtool/logging/log_level.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/logging/log_level.hpp')
-rw-r--r--src/buildtool/logging/log_level.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildtool/logging/log_level.hpp b/src/buildtool/logging/log_level.hpp
index 6ae97b94..55b66790 100644
--- a/src/buildtool/logging/log_level.hpp
+++ b/src/buildtool/logging/log_level.hpp
@@ -19,6 +19,8 @@
#include <string>
#include <type_traits>
+#include <gsl-lite/gsl-lite.hpp>
+
enum class LogLevel {
Error, ///< Error messages, fatal errors
Warning, ///< Warning messages, recoverable situations that shouldn't occur
@@ -56,6 +58,7 @@ constexpr auto kLastLogLevel = LogLevel::Trace;
case LogLevel::Trace:
return "TRACE";
}
+ gsl_Ensures(false); // unreachable
}
#endif // INCLUDED_SRC_BUILDTOOL_LOGGING_LOG_LEVEL_HPP