diff --git a/src/qml/jsruntime/qv4enginebase_p.h b/src/qml/jsruntime/qv4enginebase_p.h index 612c2dd4530..17e47e1b059 100644 --- a/src/qml/jsruntime/qv4enginebase_p.h +++ b/src/qml/jsruntime/qv4enginebase_p.h @@ -88,7 +88,9 @@ struct Q_QML_EXPORT EngineBase { MemoryManager *memoryManager = nullptr; qint32 callDepth = 0; - quint8 padding2[QT_POINTER_SIZE - sizeof(quint32)]; +#if QT_POINTER_SIZE == 8 + quint32 padding2; +#endif Object *globalObject = nullptr; Value *jsStackLimit = nullptr; Value *jsStackBase = nullptr;