loplugin:unusedfileds is no-op on Windows, so don't run its test there

But nevertheless, make sure that the variables m_bar9/10 used in combination
with css::uno::Any have UNO-compatible type.

Change-Id: I241d8b5d37de60b00b5bfdc69e642872b28e8ee2
Reviewed-on: https://gerrit.libreoffice.org/67201
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2019-01-31 11:51:39 +01:00
parent 8fbad2f600
commit 8949f98d16

View File

@ -7,6 +7,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#if defined _WIN32 //TODO, see corresponding TODO in compilerplugins/clang/unusedfields.cxx
// expected-no-diagnostics
#else
#include <vector>
#include <ostream>
#include <com/sun/star/uno/Any.hxx>
@ -45,8 +49,8 @@ struct Bar
int m_bar7[5];
int m_bar8;
int m_barstream;
int m_bar9;
int m_bar10;
sal_Int32 m_bar9;
sal_Int32 m_bar10;
// check that we see reads of fields like m_foo1 when referred to via constructor initializer
Bar(Foo const & foo) : m_bar1(foo.m_foo1) {}
@ -195,4 +199,6 @@ struct ReadOnlyAnalysis4
}
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */