Work around MSVC warnings about unused variables in moc output
Change 8836a4d5f0
already added Q_UNUSED in one place,
but that was not enough.
Change-Id: Ib98ba3fe47c0903cc01c56fd3eb8461c8938c75e
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
939f21be53
commit
2748661ddd
@ -1310,6 +1310,7 @@ void Generator::generateStaticMetacall()
|
||||
} else {
|
||||
fprintf(out, " %s *_t = reinterpret_cast<%s *>(_o);\n", cdef->classname.constData(), cdef->classname.constData());
|
||||
}
|
||||
fprintf(out, " Q_UNUSED(_t)\n");
|
||||
if (needTempVarForGet)
|
||||
fprintf(out, " void *_v = _a[0];\n");
|
||||
fprintf(out, " switch (_id) {\n");
|
||||
@ -1355,6 +1356,7 @@ void Generator::generateStaticMetacall()
|
||||
} else {
|
||||
fprintf(out, " %s *_t = reinterpret_cast<%s *>(_o);\n", cdef->classname.constData(), cdef->classname.constData());
|
||||
}
|
||||
fprintf(out, " Q_UNUSED(_t)\n");
|
||||
fprintf(out, " void *_v = _a[0];\n");
|
||||
fprintf(out, " switch (_id) {\n");
|
||||
for (int propindex = 0; propindex < cdef->propertyList.size(); ++propindex) {
|
||||
@ -1408,6 +1410,7 @@ void Generator::generateStaticMetacall()
|
||||
} else {
|
||||
fprintf(out, " %s *_t = reinterpret_cast<%s *>(_o);\n", cdef->classname.constData(), cdef->classname.constData());
|
||||
}
|
||||
fprintf(out, " Q_UNUSED(_t)\n");
|
||||
fprintf(out, " switch (_id) {\n");
|
||||
for (int propindex = 0; propindex < cdef->propertyList.size(); ++propindex) {
|
||||
const PropertyDef &p = cdef->propertyList.at(propindex);
|
||||
|
Loading…
Reference in New Issue
Block a user