summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-08 07:56:32 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-08 09:49:53 +0200
commit6202211a09175e914298f93be8ee17260d8a5bf3 (patch)
tree2453ddd39dc83136b03575f4fa4f3cb77868cd01 /compilerplugins
parent607fcac441c7f3a7d3c169c19039e581d707f2bb (diff)
-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.bergmann@allotropia.de>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/getstr.cxx2
1 files changed, 1 insertions, 1 deletions
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())
{