Skip to content

Commit

Permalink
Try using [[maybe_unused]]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored May 17, 2024
1 parent 31baccb commit 1b5519a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions unittests/CppInterOp/ScopeReflectionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1b5519a

Please sign in to comment.