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

New commits:
commit 6e4a4890e52435c22a456d8fff4982e59a1ad48c
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Tue Mar 17 11:54:01 2026 +0100
Commit:     Michael Stahl <[email protected]>
CommitDate: Wed Mar 18 10:42:25 2026 +0100

    Avoid "variable 'b' set but not used"
    
    ...in NDEBUG builds
    
    Change-Id: I9101d299da68de51811e797a46adfbde2d2c7911
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201896
    Reviewed-by: Michael Stahl <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/compilerplugins/clang/test/consttobool.cxx 
b/compilerplugins/clang/test/consttobool.cxx
index 4fe41a8140f2..881307e19473 100644
--- a/compilerplugins/clang/test/consttobool.cxx
+++ b/compilerplugins/clang/test/consttobool.cxx
@@ -65,6 +65,8 @@ int main()
     // expected-error@+1 {{implicit conversion of constant &"msg"[0] of type 
'const char *' to 'bool'; use 'true' instead [loplugin:consttobool]}}
     assert("msg");
 #endif
+
+    (void)b;
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */

Reply via email to