Skip to content

Commit

Permalink
Test solution to unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored May 17, 2024
1 parent 6eb3706 commit eb12a51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unittests/CppInterOp/ScopeReflectionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,10 +660,11 @@ TEST(ScopeReflectionTest, IsSubclass) {

TEST(ScopeReflectionTest, GetBaseClassOffset) {
std::vector<Decl *> Decls;
#define UNUSED(x) (void)(x)
#define Stringify(s) Stringifyx(s)
#define Stringifyx(...) #__VA_ARGS__
#define CODE \
class A { int m_a; }; \
class A { int m_a; void foo(const int i) {UNUSED(i);}}; \
class B { int m_b; }; \
class C : virtual A, virtual B { int m_c; }; \
class D : virtual A, virtual B, public C { int m_d; }; \
Expand Down

0 comments on commit eb12a51

Please sign in to comment.