Make clang happy, fix VS 2022 generator name

This commit is contained in:
Charless Milette 2021-11-13 12:08:01 -05:00
parent 89c4b1aabe
commit 48e35f9c3e
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -57,7 +57,7 @@ inline void append_int(T n, memory_buf_t &dest)
#endif
template<typename T>
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;