Start phasing out const_check

This commit is contained in:
Victor Zverovich
2026-01-29 17:02:40 -08:00
parent 483eddc851
commit 99803085d4
2 changed files with 10 additions and 10 deletions
+5
View File
@@ -248,6 +248,11 @@ inline auto clzll(uint64_t x) -> int {
# define FMT_BUILTIN_CLZLL(n) detail::clzll(n)
#endif // FMT_MSC_VERSION && !defined(FMT_BUILTIN_CLZLL)
// Suppresses "conditional expression is constant" warnings.
template <typename T> FMT_ALWAYS_INLINE constexpr auto const_check(T val) -> T {
return val;
}
FMT_CONSTEXPR inline void abort_fuzzing_if(bool condition) {
ignore_unused(condition);
#ifdef FMT_FUZZ