Fix some warnings in qtquick1 found by Clang
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 22 Dec 2012 08:33:21 +0000 (00:33 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 4 Jan 2013 17:49:38 +0000 (18:49 +0100)
commit99f138ad08101315cc871489c78cd10755b046b0
tree6c4e9dd42803e201ea302fe37305bdba28d61da4
parent768bf08a1ff3eed8b9367fa3d4a34ea987425af7
Fix some warnings in qtquick1 found by Clang

qml/qdeclarativevme.cpp:286:26: error: destination for this 'memset' call is a pointer to dynamic class 'QObject'; vtable pointer will be overwritten [-Werror,-Wdynamic-class-memaccess]
qml/qdeclarativemetatype.cpp:441:9: error: expression result unused; should this cast be to 'void'? [-Werror,-Wunused-value]
util/qdeclarativefontloader.cpp:87:52: error: addition of default argument on redeclaration makes this constructor a default constructor [-Werror,-Wdefault-arg-special-member]
qmlplugindump/main.cpp:180:75: error: unused parameter 'engine' [-Werror,-Wunused-parameter]
qml/qdeclarativefastproperties_p.h:53:1: error: class 'QMetaObject' was previously declared as a struct [-Werror,-Wmismatched-tags]

Change-Id: I1e91252d048e36e684a854ca1c6eb92e5a871444
Reviewed-by: Alan Alpert <aalpert@rim.com>
src/declarative/qml/qdeclarativefastproperties_p.h
src/declarative/qml/qdeclarativemetatype.cpp
src/declarative/qml/qdeclarativevme.cpp
src/declarative/util/qdeclarativefontloader.cpp
tools/qmlplugindump/main.cpp