Skip to content

Commit 45e57a5

Browse files
committed
Suppress warning on unused static data member.
The member in the specialization is intentionally unused on 32-bit targets.
1 parent 3f36421 commit 45e57a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Lex/MacroInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ namespace {
3434
// and 4 byte SourceLocation.
3535
template <int> class MacroInfoSizeChecker {
3636
public:
37-
constexpr static bool AsExpected = true;
37+
[[maybe_unused]] constexpr static bool AsExpected = true;
3838
};
3939
template <> class MacroInfoSizeChecker<8> {
4040
public:
41-
constexpr static bool AsExpected =
41+
[[maybe_unused]] constexpr static bool AsExpected =
4242
sizeof(MacroInfo) == (32 + sizeof(SourceLocation) * 2);
4343
};
4444

0 commit comments

Comments
 (0)