Avoid warnings about unused var `allocator` for empty classes

This commit is contained in:
Martchus 2022-05-15 20:52:30 +02:00
parent 1e3417f8d0
commit 9c3bf01c8f
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ void JsonSerializationCodeGenerator::generate(ostream &os) const
} }
} }
if (relevantBases.empty() && !pushWritten) { if (relevantBases.empty() && !pushWritten) {
os << " (void)reflectable;\n (void)value;\n"; os << " (void)reflectable;\n (void)value;\n (void)allocator;\n";
} }
os << "}\n"; os << "}\n";