Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.1.0
-
None
-
Visual Studio 2010
Description
With latest qtdeclarative in stable, including QtQml results in:
c:\users\josh\st\qt5\qtbase\include\qtqml\../../../qtdeclarative/src/qml/qml/qqmlprivate.h(261) : warning C4510: 'QQmlPrivate::RegisterCompositeType' : default constructor could not be generated c:\users\josh\st\qt5\qtbase\include\qtqml\../../../qtdeclarative/src/qml/qml/qqmlprivate.h(255) : see declaration of 'QQmlPrivate::RegisterCompositeType' c:\users\josh\st\qt5\qtbase\include\qtqml\../../../qtdeclarative/src/qml/qml/qqmlprivate.h(261) : warning C4610: struct 'QQmlPrivate::RegisterCompositeType' can never be instantiated - user defined constructor required
I think the warning is wrong, since qqmlimport.cpp compiles successfully, but it's a problem when compiling with warnings-as-errors.
Attachments
For Gerrit Dashboard: QTBUG-30454 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
55137,2 | Fix VS2010 compile warning | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |
55138,3 | Fix VS2010 compile warning | stable | qt/qtquick1 | Status: MERGED | +2 | 0 |