compilerplugins/clang/unusedmember.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit fd7caefaacd91a16fce10b4e4fbfe6ef4f5ffce9
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Mon Apr 8 08:07:16 2024 +0200
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Mon Apr 8 10:48:45 2024 +0200

    -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.bergm...@allotropia.de>

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;

Reply via email to