From 48e35f9c3e13ca0792a4ff7eec86ae502e3b1478 Mon Sep 17 00:00:00 2001 From: Charless Milette Date: Sat, 13 Nov 2021 12:08:01 -0500 Subject: [PATCH] Make clang happy, fix VS 2022 generator name --- appveyor.yml | 2 +- include/spdlog/details/fmt_helper.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 42d928e3..6c5f2103 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -66,7 +66,7 @@ environment: BUILD_EXAMPLE: 'OFF' USE_STD_FORMAT: 'OFF' APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - - GENERATOR: '"Visual Studio 16 2022" -A x64' + - GENERATOR: '"Visual Studio 17 2022" -A x64' BUILD_TYPE: Release BUILD_SHARED: 'ON' WCHAR: 'OFF' diff --git a/include/spdlog/details/fmt_helper.h b/include/spdlog/details/fmt_helper.h index d0b5f98c..25976f50 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -57,7 +57,7 @@ inline void append_int(T n, memory_buf_t &dest) #endif template -SPDLOG_CONSTEXPR unsigned int count_digits_fallback(T n) +SPDLOG_CONSTEXPR_FUNC unsigned int count_digits_fallback(T n) { // taken from fmt. unsigned int count = 1;