Skip to content

Commit

Permalink
Fix FMT_NO_UNIQUE_ADDRESS warning with clang-cl.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukester1975 committed Aug 20, 2023
1 parent af1b768 commit 8ce4b15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
# if FMT_CPLUSPLUS >= 202002L
# if FMT_HAS_CPP_ATTRIBUTE(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]]
# endif
# endif
Expand Down

0 comments on commit 8ce4b15

Please sign in to comment.