commit | 67b2e53b2e598bb50fddfa1531e3ab7c2adf2007 | [log] [tgz] |
---|---|---|
author | Ed Tanous <etanous@nvidia.com> | Wed Dec 11 14:33:17 2024 -0800 |
committer | Ed Tanous <ed@tanous.net> | Thu Dec 12 00:34:15 2024 +0000 |
tree | 1ee972ab279137f5534d3a101efcfbdc98d1f06b | |
parent | 6a37140a87a5f3185f6c68bd405701c6111a7b20 [diff] |
Fix clang-tidy for gcc-14 We use these pragmas, that we must've been getting transitively through chrono in the past. Now we need to include them explicitly. Change-Id: Iee4c0a8866981b91adaa17bee0678b2c10e65ea9 Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/redfish-core/src/utils/time_utils.cpp b/redfish-core/src/utils/time_utils.cpp index c33d501..163f0ef 100644 --- a/redfish-core/src/utils/time_utils.cpp +++ b/redfish-core/src/utils/time_utils.cpp
@@ -1,5 +1,7 @@ #include "utils/time_utils.hpp" +#include <version> + #if __cpp_lib_chrono < 201907L #include "utils/extern/date.h" #endif
diff --git a/test/redfish-core/include/utils/time_utils_test.cpp b/test/redfish-core/include/utils/time_utils_test.cpp index 52c8590..dd9fdfa 100644 --- a/test/redfish-core/include/utils/time_utils_test.cpp +++ b/test/redfish-core/include/utils/time_utils_test.cpp
@@ -5,6 +5,7 @@ #include <ctime> #include <limits> #include <optional> +#include <version> #include <gtest/gtest.h>