diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2015-08-14 16:09:21 +0200 |
---|---|---|
committer | Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> | 2015-08-26 06:46:05 +0000 |
commit | 5a500100581f17f057f1958f956b2ddaf7048ecf (patch) | |
tree | 1eb737e6fd38d0d074f5457084e79c680429b5b5 /doc/global/html-header-offline.qdocconf | |
parent | 418824dc691fd7fe2fede6b9566f0c4db098e772 (diff) |
Be more tolerant with multiple differerent metatype registrations
There is a qFatal in qmetatype.cpp that checks that the flags are the same.
There is a binary compatibility break because if any cause build with Qt 5.5
is loaded, this qFatal will quit the application, due to the change in
commit 54a09a41885e65fea4ca20d0e3d90d8f4e9e80c5:
Type flags for type 'QtMetaTypePrivate::QPairVariantInterfaceImpl' [1034]
don't match. Previously registered TypeFlags(0x103), now registering
TypeFlags(0x107). This is an ODR break, which means that your application
depends on a C++ undefined behavior.
This is a false positive since it is an internal type, the MovableType in
QMetaType is only being used for performance reason, it is perfectly fine
to change it.
This commit changes the qFatal to complain only about flags that could
only be caused by a binary incompatible change.
Change-Id: I87b9bf8cf54b6c7f4b1277d411ce5107642435ab
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'doc/global/html-header-offline.qdocconf')
0 files changed, 0 insertions, 0 deletions