From 1c90deaa3f03978fcd31e8cf5c71e39cea455326 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 17 May 2018 10:09:30 +0200 Subject: Avoid warning C4101 with some over-eager MSVC : > C:/cygwin/home/tdf/lode/jenkins/workspace/lo_tb_master_win/xmloff/source/forms/propertyimport.cxx(189): error C2220: warning treated as error - no 'object' file generated > C:/cygwin/home/tdf/lode/jenkins/workspace/lo_tb_master_win/xmloff/source/forms/propertyimport.cxx(189): warning C4101: 'dummy': unreferenced local variable Change-Id: Ic80aee5b9c7af44bf87081492008a6ec30fcfe1c --- xmloff/source/forms/propertyimport.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'xmloff/source/forms') diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx index 679f1d5b3154..3b15dcd69f40 100644 --- a/xmloff/source/forms/propertyimport.cxx +++ b/xmloff/source/forms/propertyimport.cxx @@ -187,6 +187,7 @@ Any PropertyConversion::convertString( const css::uno::Type& _rExpectedType, case TYPE_DATE: { double dummy; + (void) dummy; // avoid warning C4101 with some over-eager MSVC OSL_ENSURE(std::modf(nValue, &dummy) == 0, "PropertyConversion::convertString: a Date value with a fractional part?"); aReturn <<= lcl_getDate(nValue); -- cgit