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/imports | |
parent | 4a1505d5177d42ad2369d207be402a7846fd564a (diff) |
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/imports')
-rw-r--r-- | src/imports/shaders/scenegraph/qsggeometry.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/shaders/scenegraph/qsggeometry.cpp b/src/imports/shaders/scenegraph/qsggeometry.cpp index f5c497fb..41f599bc 100644 --- a/src/imports/shaders/scenegraph/qsggeometry.cpp +++ b/src/imports/shaders/scenegraph/qsggeometry.cpp @@ -94,6 +94,8 @@ QSGGeometry::QSGGeometry(const QSGGeometry::AttributeSet &attributes, { Q_ASSERT(m_attributes.count > 0); Q_ASSERT(m_attributes.stride > 0); + Q_UNUSED(m_reserved_pointer); + Q_UNUSED(m_reserved_bits); // Because allocate reads m_vertex_count, m_index_count and m_owns_data, these // need to be set before calling allocate... |