diff options
author | Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com> | 2022-02-14 12:26:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 12:26:50 +0300 |
commit | 1fb7beae5e97aadf8471ae7b6e07f5c2e5f33c78 (patch) | |
tree | fc905cdb67494c5b7b59cb21465483f6d0464b31 /src/logger.hpp | |
parent | 6df74a76eeacc5240d36fa7e62717cd1cdd238a7 (diff) | |
download | virtual-media-1fb7beae5e97aadf8471ae7b6e07f5c2e5f33c78.tar.xz |
Switch the build system to meson
Due to requirements from community, new projects have to be built with
meson.
To unify with other projects some additional warnings has been enabled,
so appropriate code updates has been implemented.
This commit makes both meson and CMake available to simplyfy transition
in openbmc. CMake support will be removed after switching to meson in
openbmc will be accepted.
Tested:
Compiled and smoke tested.
Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Diffstat (limited to 'src/logger.hpp')
-rw-r--r-- | src/logger.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/logger.hpp b/src/logger.hpp index 3aef8e2..6086ec4 100644 --- a/src/logger.hpp +++ b/src/logger.hpp @@ -47,10 +47,9 @@ struct Critical template <std::size_t Len> constexpr const char* baseNameImpl(const char (&str)[Len], std::size_t pos) { - return pos == 0 ? str - : (str[pos] == '/' || str[pos] == '\\') - ? str + pos + 1 - : baseNameImpl(str, --pos); + return pos == 0 ? str + : (str[pos] == '/' || str[pos] == '\\') ? str + pos + 1 + : baseNameImpl(str, --pos); } template <std::size_t Len> |