summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/MatchingText.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2012-10-15 12:58:51 +0200
committerhjk <qthjk@ovi.com>2012-10-15 13:06:56 +0200
commit52bf349bf3395fa99af522431592d90ed6ffad55 (patch)
tree9bba94bfeb46daa88ca8e41ae4630b1bfbc6bff4 /src/libs/cplusplus/MatchingText.cpp
parentc120086726645bc74563ca74a15f111b3455a576 (diff)
downloadqt-creator-52bf349bf3395fa99af522431592d90ed6ffad55.tar.gz
CplusPlus: Remove pragma suppressing gcc warning.
The respective warning was provoked by Qt code, which has been fixed and no longer causes that problem. Change-Id: I1b9efc2e6f9d2af7719d4c921f37f8335c351bfe Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/libs/cplusplus/MatchingText.cpp')
-rw-r--r--src/libs/cplusplus/MatchingText.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libs/cplusplus/MatchingText.cpp b/src/libs/cplusplus/MatchingText.cpp
index 14700cf108..ddea691375 100644
--- a/src/libs/cplusplus/MatchingText.cpp
+++ b/src/libs/cplusplus/MatchingText.cpp
@@ -52,15 +52,6 @@ static bool shouldOverrideChar(QChar ch)
}
}
-// disable gcc warning:
-//
-// qstring.h:1175:39: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false
-//
-// caused by Q_ASSERT in QStringRef::at()
-#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL)
-# pragma GCC diagnostic ignored "-Wstrict-overflow"
-#endif
-
static bool isCompleteStringLiteral(const BackwardsScanner &tk, int index)
{
const QStringRef text = tk.textRef(index);