Author: John Brawn Date: 2023-07-05T17:54:50+01:00 New Revision: 25784cd6a962ac59e7bde07761fc3ba450da6628
URL: https://github.com/llvm/llvm-project/commit/25784cd6a962ac59e7bde07761fc3ba450da6628 DIFF: https://github.com/llvm/llvm-project/commit/25784cd6a962ac59e7bde07761fc3ba450da6628.diff LOG: Fix compile error in UnresolvedSetTest.cpp, again 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. Added: Modified: clang/unittests/AST/UnresolvedSetTest.cpp Removed: ################################################################################ diff --git a/clang/unittests/AST/UnresolvedSetTest.cpp b/clang/unittests/AST/UnresolvedSetTest.cpp index 147c42e1fb0884..ada857e0e38260 100644 --- a/clang/unittests/AST/UnresolvedSetTest.cpp +++ b/clang/unittests/AST/UnresolvedSetTest.cpp @@ -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() {} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits