Skip to content

Commit

Permalink
Fix compile error in UnresolvedSetTest.cpp, again
Browse files Browse the repository at this point in the history
My previous fix used a gcc-style attribute, but not all compilers will accept
that. Instead use [[maybe_unused]], which is what we use elsewhere for this
kind of thing.
  • Loading branch information
john-brawn-arm committed Jul 5, 2023
1 parent 9992b38 commit 25784cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/unittests/AST/UnresolvedSetTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace clang {
class NamedDecl {
// DeclAccessPair assumes that NamedDecl is at least 4-byte aligned, so we
// we need to have a dummy value to make this dummy NamedDecl also be aligned.
int dummy __attribute__((unused));
[[maybe_unused]] int dummy;

public:
NamedDecl() {}
Expand Down

0 comments on commit 25784cd

Please sign in to comment.