forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user