summaryrefslogtreecommitdiff
path: root/compilerplugins/clang
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-08 08:07:16 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-08 10:48:45 +0200
commitfd7caefaacd91a16fce10b4e4fbfe6ef4f5ffce9 (patch)
treedceb72b3da2fa06e122551b7896ccea4b4d370a9 /compilerplugins/clang
parent479a39cbf0f4564abe93066d7a3f6b2e82de0e76 (diff)
-Werror,-Wunused-but-set-variable
Change-Id: I4e4d3c810e9d37fd4b87d3307c2ba906923aa63b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165882 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r--compilerplugins/clang/unusedmember.cxx2
1 files changed, 2 insertions, 0 deletions
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;