diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-06-04 13:47:58 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-10 22:58:47 +0200 |
commit | 05148b648d63eddca797fada19d131d8affdc456 (patch) | |
tree | 3bbfe880f5f869399ea225c9edcec3d2531f9aa9 /src/declarative/qml/qdeclarativebinding.cpp | |
parent | 4a1505d5177d42ad2369d207be402a7846fd564a (diff) | |
download | qtquick1-05148b648d63eddca797fada19d131d8affdc456.tar.gz |
Fix warnings found by clang: unused private members
For qdeclarativebinding_p.h, since the class is private, there is no
BC guarantee, so we can just remove the members. This class has a
friend, but the friend is also in the same .cpp.
qdeclarativebinding_p.h:139:14: error: private field 'm_object' is not used [-Werror,-Wunused-private-field]
qdeclarativebinding_p.h:140:9: error: private field 'm_index' is not used [-Werror,-Wunused-private-field]
For QSGGeometry, since this is a public class, we can't remove the
members. Just make them unused.
qsggeometry.h:124:11: error: private field 'm_reserved_pointer' is not used [-Werror,-Wunused-private-field]
qsggeometry.h:127:10: error: private field 'm_reserved_bits' is not used [-Werror,-Wunused-private-field]
Change-Id: Ia3650f38f32bd4cd705078a69c5445c64883bce4
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativebinding.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativebinding.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativebinding.cpp b/src/declarative/qml/qdeclarativebinding.cpp index 9048fee1..cdfb5ce4 100644 --- a/src/declarative/qml/qdeclarativebinding.cpp +++ b/src/declarative/qml/qdeclarativebinding.cpp @@ -486,8 +486,10 @@ QString QDeclarativeBinding::expression() const } QDeclarativeValueTypeProxyBinding::QDeclarativeValueTypeProxyBinding(QObject *o, int index) -: m_object(o), m_index(index), m_bindings(0) +: m_bindings(0) { + Q_UNUSED(o); + Q_UNUSED(index); } QDeclarativeValueTypeProxyBinding::~QDeclarativeValueTypeProxyBinding() |