diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-08-23 08:50:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-08-23 08:50:43 +0200 |
commit | b3f4d69d31757d4bf446628636e493d2e4826088 (patch) | |
tree | 65da12e50b45e7d20bfb4e9aad8ff615bee36929 /compilerplugins | |
parent | 94787b2f8457156c4c9a906717a2b48709ecea91 (diff) |
Avoid warnings about unused private fields
Change-Id: If8fa47120f8dd7453a30f28ca9f726cbcbb80dc2
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/test/conststringfield.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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; } }; |