diff options
-rw-r--r-- | compilerplugins/clang/test/unusedfields.cxx | 2 | ||||
-rw-r--r-- | compilerplugins/clang/test/writeonlyvars.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/test/unusedfields.cxx b/compilerplugins/clang/test/unusedfields.cxx index 6b54b4f7acf1..42b49a5df832 100644 --- a/compilerplugins/clang/test/unusedfields.cxx +++ b/compilerplugins/clang/test/unusedfields.cxx @@ -139,7 +139,7 @@ struct Bar // check that we see writes of the LHS when calling operator<<= void bar12() { - int x; + int x = 0; m_bar12 <<= x; } }; diff --git a/compilerplugins/clang/test/writeonlyvars.cxx b/compilerplugins/clang/test/writeonlyvars.cxx index c2f78bddda88..a596c864c3a8 100644 --- a/compilerplugins/clang/test/writeonlyvars.cxx +++ b/compilerplugins/clang/test/writeonlyvars.cxx @@ -86,7 +86,7 @@ void test() // check that we see don't see writes when calling operator<<= // expected-error@+1 {{read m_bar10 [loplugin:writeonlyvars]}} - sal_Int32 m_bar10; + sal_Int32 m_bar10 = 0; // expected-error@+2 {{write any2 [loplugin:writeonlyvars]}} // expected-error@+1 {{read any2 [loplugin:writeonlyvars]}} css::uno::Any any2; |