From 1b5519a4d0268f6a0291b55628a5ea4b61234bd5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbarton@users.noreply.github.com> Date: Fri, 17 May 2024 21:36:50 +0100 Subject: [PATCH] Try using [[maybe_unused]] --- unittests/CppInterOp/ScopeReflectionTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/unittests/CppInterOp/ScopeReflectionTest.cpp b/unittests/CppInterOp/ScopeReflectionTest.cpp index 0ac495518..8b404c302 100644 --- a/unittests/CppInterOp/ScopeReflectionTest.cpp +++ b/unittests/CppInterOp/ScopeReflectionTest.cpp @@ -665,13 +665,13 @@ TEST(ScopeReflectionTest, GetBaseClassOffset) { #define Stringify(s) Stringifyx(s) #define Stringifyx(...) #__VA_ARGS__ #define CODE \ - class A { m_aa }; \ - class B { m_bb }; \ - class C : virtual A, virtual B { m_cc }; \ - class D : virtual A, virtual B, public C { m_dd }; \ - class E : public A, public B { m_ee }; \ - class F : public A { m_ff }; \ - class G : public F { m_gg }; + class A { [[maybe_unused]] int m_a; }; \ + class B { [[maybe_unused]] int m_b; }; \ + class C : virtual A, virtual B { [[maybe_unused]] int m_c; }; \ + class D : virtual A, virtual B, public C { [[maybe_unused]] int m_d; }; \ + class E : public A, public B { [[maybe_unused]] int m_e; }; \ + class F : public A { [[maybe_unused]] int m_f; }; \ + class G : public F { [[maybe_unused]] int m_g; }; CODE;