Go to file
Kent Hansen 60829b4a56 Silence clang warning in QVector::reallocData()
qvector.h:459:30: warning: destination for this 'memcpy' call is a
pointer to dynamic class 'QImage';
vtable pointer will be overwritten [-Wdynamic-class-memaccess]
          ::memcpy(dst, srcBegin, (srcEnd - srcBegin) * sizeof(T));
          ~~~~~~~~ ^
qvector.h:459:30: note: explicitly cast the pointer to silence
this warning
          ::memcpy(dst, srcBegin, (srcEnd - srcBegin) * sizeof(T));
                   ^
                   (void*)

QImage inherits from QPaintDevice, which has virtual functions.
qimage.h declares QImage as a movable type, so
QTypeInfo<QImage>::isStatic is false. Hence, the memcpy codepath will
be reached when the vector is not shared.

We should trust that people declaring such type traits know what
they're doing, so silence the warning.

Change-Id: If36582f57a398fc237fb4bd4f72938fb09667118
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-07-03 01:55:42 +02:00
bin Make QWindowSystemInterface part of QPA API 2012-07-03 01:55:37 +02:00
config.tests Move DirectFB tests into qpa 2012-07-03 01:55:22 +02:00
dist Document that the object of a plugin must be default-constructible. 2012-06-27 14:43:00 +02:00
doc Remove the MacMainWindow example. 2012-05-30 01:54:45 +02:00
examples Make QCalendarWidget use its locale's firstDayOfWeek. 2012-06-28 17:15:17 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs qmake: improve the .pc files generator 2012-07-03 01:08:44 +02:00
qmake qmake: improve the .pc files generator 2012-07-03 01:08:44 +02:00
src Silence clang warning in QVector::reallocData() 2012-07-03 01:55:42 +02:00
tests Add erase operation to QArrayDataOps 2012-07-03 01:55:39 +02:00
tools buildsystem: Remove SXE from the configure and qconfig-*.h files 2012-07-02 10:10:56 +02:00
util QUnicodeTables: some internal API renamings 2012-06-22 09:47:59 +02:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Update .gitignore 2012-06-29 15:49:06 +02:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Move DirectFB tests into qpa 2012-07-03 01:55:22 +02:00
configure.bat Remove Q_BYTE_ORDER and -*-endian arguments from configures 2012-03-02 14:48:00 +01:00
header.BSD Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.FDL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL-ONLY Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Restore building of examples, tests. 2012-06-22 05:21:52 +02:00
sync.profile Make QWindowSystemInterface part of QPA API 2012-07-03 01:55:37 +02:00