From fd7caefaacd91a16fce10b4e4fbfe6ef4f5ffce9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Apr 2024 08:07:16 +0200 Subject: [PATCH] -Werror,-Wunused-but-set-variable Change-Id: I4e4d3c810e9d37fd4b87d3307c2ba906923aa63b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165882 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/unusedmember.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compilerplugins/clang/unusedmember.cxx b/compilerplugins/clang/unusedmember.cxx index 9cf40d721259..305f9c606d31 100644 --- a/compilerplugins/clang/unusedmember.cxx +++ b/compilerplugins/clang/unusedmember.cxx @@ -126,6 +126,8 @@ public: { #if 0 //TODO: friend function definitions are not marked as referenced even if used? if (!d3->isThisDeclarationADefinition()) //TODO: do this check for all kinds? +#else + (void)d3; #endif { continue;