diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-02 14:31:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-02 22:01:00 +0200 |
commit | 64106353c98e8cb0c99c9e4ff509348edf8ed911 (patch) | |
tree | a15af34219de10df7609457fadd3a73d9960b5d8 /compilerplugins | |
parent | 92fc91bbb865af2888a0717cdaef5e2af5b4b719 (diff) |
Just use Any ctor instead of makeAny in writerperfect
(which needs one more false loplugin:redundantfcast suppression case)
Change-Id: Ib8a72a510384f497bddaef5b812a46ea473481d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133703
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/redundantfcast.cxx | 4 |
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()) |