summaryrefslogtreecommitdiff
path: root/src/buildtool/logging/log_level.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-26 16:51:10 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-09-26 16:54:21 +0200
commit4ae83890ce3a82e1f9a716971aaa69591f0cf6cb (patch)
treedac323622558073c89fcbd892da02af0cfc453ac /src/buildtool/logging/log_level.hpp
parent5baab75fd2ae62b6f6407991922fe234f9e73c88 (diff)
downloadjustbuild-4ae83890ce3a82e1f9a716971aaa69591f0cf6cb.tar.gz
Fix enum sizes proposed by clang-tidy.
Enable performance-enum-size check.
Diffstat (limited to 'src/buildtool/logging/log_level.hpp')
-rw-r--r--src/buildtool/logging/log_level.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/logging/log_level.hpp b/src/buildtool/logging/log_level.hpp
index 65b7b7c2..12e4af7f 100644
--- a/src/buildtool/logging/log_level.hpp
+++ b/src/buildtool/logging/log_level.hpp
@@ -17,12 +17,13 @@
#include <algorithm>
#include <cmath>
+#include <cstdint>
#include <string>
#include <type_traits>
#include "gsl/gsl"
-enum class LogLevel {
+enum class LogLevel : std::uint8_t {
Error, ///< Error messages, fatal errors
Warning, ///< Warning messages, recoverable situations that shouldn't occur
Info, ///< Informative messages, such as reporting status or statistics