Commit e58f203e authored by Thiago Macieira's avatar Thiago Macieira Committed by hjk
Browse files

Silence a warning about unrecognised pragma with ICC

src/libs/cplusplus/MatchingText.cpp(64): warning #161: unrecognized #pragma
  #    pragma GCC diagnostic ignored "-Wstrict-overflow"

This pragma is recognised in GCC only, so don't enable it for when ICC
fakes to be GCC.

Change-Id: I3d9830dc2b12632dd08d8c8961219bd253ad8c1d
Reviewed-by: default avatarhjk <>
parent 753acdcf
......@@ -60,7 +60,7 @@ static bool shouldOverrideChar(QChar ch)
// 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()
#ifdef Q_CC_GNU
#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL)
# pragma GCC diagnostic ignored "-Wstrict-overflow"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment