diff --git a/unittests/CppInterOp/VariableReflectionTest.cpp b/unittests/CppInterOp/VariableReflectionTest.cpp index b69176c0e..3dcfee44d 100644 --- a/unittests/CppInterOp/VariableReflectionTest.cpp +++ b/unittests/CppInterOp/VariableReflectionTest.cpp @@ -93,7 +93,7 @@ TEST(VariableReflectionTest, GetVariableType) { #define CODE \ int a; \ - const int N = 5; \ + [[maybe_unused]] const int N = 5; \ class C { \ public: \ int a; \