From: Joel Rosdahl Date: Sun, 19 Jun 2022 08:11:28 +0000 (+0200) Subject: refactor: Remove some now unnecessary static_assert messages X-Git-Tag: v4.7~177 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0023797871a44de283058242310ff863cec9a96;p=thirdparty%2Fccache.git refactor: Remove some now unnecessary static_assert messages --- diff --git a/src/core/Manifest.cpp b/src/core/Manifest.cpp index 64b6b85a3..003e54cfd 100644 --- a/src/core/Manifest.cpp +++ b/src/core/Manifest.cpp @@ -65,7 +65,7 @@ template<> struct hash size_t operator()(const core::Manifest::FileInfo& file_info) const { - static_assert(sizeof(file_info) == 48, "unexpected size"); // No padding. + static_assert(sizeof(file_info) == 48); // No padding. util::XXH3_64 hash; hash.update(&file_info, sizeof(file_info)); return hash.digest(); diff --git a/src/core/Statistics.cpp b/src/core/Statistics.cpp index 4105d4e36..70c685aa1 100644 --- a/src/core/Statistics.cpp +++ b/src/core/Statistics.cpp @@ -124,8 +124,7 @@ const StatisticsField k_statistics_fields[] = { }; static_assert(sizeof(k_statistics_fields) / sizeof(k_statistics_fields[0]) - == static_cast(Statistic::END) - 1, - "incorrect number of fields"); + == static_cast(Statistic::END) - 1); static std::string format_timestamp(const uint64_t value)