compilerplugins/clang/test/conststringfield.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b3f4d69d31757d4bf446628636e493d2e4826088
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Aug 23 08:50:43 2018 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Aug 23 08:50:43 2018 +0200

    Avoid warnings about unused private fields
    
    Change-Id: If8fa47120f8dd7453a30f28ca9f726cbcbb80dc2

diff --git a/compilerplugins/clang/test/conststringfield.cxx 
b/compilerplugins/clang/test/conststringfield.cxx
index fa8785713521..1f34ee2530e2 100644
--- a/compilerplugins/clang/test/conststringfield.cxx
+++ b/compilerplugins/clang/test/conststringfield.cxx
@@ -17,6 +17,7 @@ class Class1
         : m_field1("xxxx")
     // expected-error@-1 {{string field can be static const 
[loplugin:conststringfield]}}
     {
+        (void)m_field1;
     }
 };
 
@@ -27,6 +28,7 @@ class Class2
         : m_field1("xxxx")
     // expected-error@-1 {{string field can be static const 
[loplugin:conststringfield]}}
     {
+        (void)m_field1;
     }
 };
 
@@ -37,6 +39,7 @@ class Class4
     Class4()
         : m_field1("xxxx")
     {
+        (void)m_field1;
     }
 };
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to