From caffabc79833c6378365fabd589187224fb1c0cc Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 21 Mar 2013 13:51:51 -0700 Subject: Mark Q_UNUSED the private members that aren't used Apple Clang 4.2 has a new warning, letting you know when a private member isn't used by any member function (and, I guess, if the class has no friends): private field 'd' is not used [-Werror,-Wunused-private-field] Qt has a few of those for future expansion. It's not an error for us. Change-Id: Id2edb1159589572f97a07f93181c9c96c5dd983c Reviewed-by: Konstantin Ritt Reviewed-by: David Faure --- src/corelib/tools/qbytearraymatcher.cpp | 1 + src/corelib/tools/qstringmatcher.cpp | 1 + src/corelib/tools/qtextboundaryfinder.cpp | 1 + 3 files changed, 3 insertions(+) (limited to 'src/corelib/tools') diff --git a/src/corelib/tools/qbytearraymatcher.cpp b/src/corelib/tools/qbytearraymatcher.cpp index 59d7629c27..bcd6a56aad 100644 --- a/src/corelib/tools/qbytearraymatcher.cpp +++ b/src/corelib/tools/qbytearraymatcher.cpp @@ -164,6 +164,7 @@ QByteArrayMatcher::QByteArrayMatcher(const QByteArrayMatcher &other) */ QByteArrayMatcher::~QByteArrayMatcher() { + Q_UNUSED(d); } /*! diff --git a/src/corelib/tools/qstringmatcher.cpp b/src/corelib/tools/qstringmatcher.cpp index 0aacea4762..d54e9c7ba7 100644 --- a/src/corelib/tools/qstringmatcher.cpp +++ b/src/corelib/tools/qstringmatcher.cpp @@ -198,6 +198,7 @@ QStringMatcher::QStringMatcher(const QStringMatcher &other) */ QStringMatcher::~QStringMatcher() { + Q_UNUSED(d_ptr); } /*! diff --git a/src/corelib/tools/qtextboundaryfinder.cpp b/src/corelib/tools/qtextboundaryfinder.cpp index eb861b7289..7b8fbebb22 100644 --- a/src/corelib/tools/qtextboundaryfinder.cpp +++ b/src/corelib/tools/qtextboundaryfinder.cpp @@ -229,6 +229,7 @@ QTextBoundaryFinder &QTextBoundaryFinder::operator=(const QTextBoundaryFinder &o */ QTextBoundaryFinder::~QTextBoundaryFinder() { + Q_UNUSED(unused); if (freePrivate) free(d); } -- cgit v1.2.3