summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/redundantfcast.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/compilerplugins/clang/redundantfcast.cxx b/compilerplugins/clang/redundantfcast.cxx
index e78f2cf976ab..38a7daf9fff7 100644
--- a/compilerplugins/clang/redundantfcast.cxx
+++ b/compilerplugins/clang/redundantfcast.cxx
@@ -180,6 +180,10 @@ public:
if (m_Seen.insert(arg->getExprLoc()).second)
{
+ if (suppressWarningAt(arg->getBeginLoc()))
+ {
+ continue;
+ }
report(DiagnosticsEngine::Warning,
"redundant functional cast from %0 to %1 in construct expression",
arg->getExprLoc())