mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Fix FMT_NO_UNIQUE_ADDRESS
warning with clang-cl. (#3600)
See https://reviews.llvm.org/D110485 for info.
This commit is contained in:
parent
a992b3d1fc
commit
cc077a5e3b
@ -83,7 +83,8 @@
|
|||||||
# if FMT_CPLUSPLUS >= 202002L
|
# if FMT_CPLUSPLUS >= 202002L
|
||||||
# if FMT_HAS_CPP_ATTRIBUTE(no_unique_address)
|
# if FMT_HAS_CPP_ATTRIBUTE(no_unique_address)
|
||||||
# define FMT_NO_UNIQUE_ADDRESS [[no_unique_address]]
|
# define FMT_NO_UNIQUE_ADDRESS [[no_unique_address]]
|
||||||
# elif FMT_MSC_VERSION >= 1929 // VS2019 v16.10 and later
|
// VS2019 v16.10 and later except clang-cl (https://reviews.llvm.org/D110485)
|
||||||
|
# elif (FMT_MSC_VERSION >= 1929) && !FMT_CLANG_VERSION
|
||||||
# define FMT_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
|
# define FMT_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user