diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-03-21 14:15:12 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-15 15:32:40 +0200 |
commit | c57dd789fd0a76a81499c9413203a46d1743e0f8 (patch) | |
tree | c7095716507b36cd9322892abf24b40ae72ca785 /src/dbus/qdbuserror.cpp | |
parent | aec1bcf6a36a61ae7bad8f733ac4bd2211e6eb2b (diff) |
Mark as unused the private members that aren't and CANNOT be used
Those members were left uninitialised by inline constructors and/or
the destructor of those classes is/was also inline. Those members
cannot be used to store pointers that need managing during the Qt 5.x
lifetime.
They can be used to store simple values, as if they were integers.
Detected by Apple Clang 4.2.
Change-Id: I20e2def7c4006668e2d6a7e332c89e2dc8c2a184
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/dbus/qdbuserror.cpp')
-rw-r--r-- | src/dbus/qdbuserror.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dbus/qdbuserror.cpp b/src/dbus/qdbuserror.cpp index f486c19fdc..ddc2be7c38 100644 --- a/src/dbus/qdbuserror.cpp +++ b/src/dbus/qdbuserror.cpp @@ -257,7 +257,9 @@ static inline QDBusError::ErrorType get(const char *name) QDBusError::QDBusError() : code(NoError) { - + // ### This class has an implicit (therefore inline) destructor + // so the following field cannot be used. + Q_UNUSED(unused); } #ifndef QT_BOOTSTRAPPED |