compilerplugins/clang/getstr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6202211a09175e914298f93be8ee17260d8a5bf3 Author: Stephan Bergmann <stephan.bergm...@allotropia.de> AuthorDate: Mon Apr 8 07:56:32 2024 +0200 Commit: Stephan Bergmann <stephan.bergm...@allotropia.de> CommitDate: Mon Apr 8 09:49:53 2024 +0200 -Werror,-Wunused-but-set-variable ...ever since the code got introduced in 77d083f2cbe496274cdab38a3a34497d1b742d86 "New loplugin:getstr" Change-Id: I3e0c7793c6e19e44d7450156aeb3cead3511faf9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165880 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de> diff --git a/compilerplugins/clang/getstr.cxx b/compilerplugins/clang/getstr.cxx index 671699e73551..97276591e19e 100644 --- a/compilerplugins/clang/getstr.cxx +++ b/compilerplugins/clang/getstr.cxx @@ -81,7 +81,7 @@ public: return true; } bool castToVoid = false; - if (auto const ic = dyn_cast<ImplicitCastExpr>(arg1)) + if (isa<ImplicitCastExpr>(arg1)) { if (loplugin::TypeCheck(arg1->getType()).Pointer().Void()) {