Avoid warnings about unused var `allocator` for empty classes
This commit is contained in:
parent
1e3417f8d0
commit
9c3bf01c8f
|
@ -127,7 +127,7 @@ void JsonSerializationCodeGenerator::generate(ostream &os) const
|
|||
}
|
||||
}
|
||||
if (relevantBases.empty() && !pushWritten) {
|
||||
os << " (void)reflectable;\n (void)value;\n";
|
||||
os << " (void)reflectable;\n (void)value;\n (void)allocator;\n";
|
||||
}
|
||||
os << "}\n";
|
||||
|
||||
|
|
Loading…
Reference in New Issue