Avoid warning C4101 with some over-eager MSVC
<https://ci.libreoffice.org/job/lo_tb_master_win/17664/console>: > 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
This commit is contained in:
@@ -187,6 +187,7 @@ Any PropertyConversion::convertString( const css::uno::Type& _rExpectedType,
|
|||||||
case TYPE_DATE:
|
case TYPE_DATE:
|
||||||
{
|
{
|
||||||
double dummy;
|
double dummy;
|
||||||
|
(void) dummy; // avoid warning C4101 with some over-eager MSVC
|
||||||
OSL_ENSURE(std::modf(nValue, &dummy) == 0,
|
OSL_ENSURE(std::modf(nValue, &dummy) == 0,
|
||||||
"PropertyConversion::convertString: a Date value with a fractional part?");
|
"PropertyConversion::convertString: a Date value with a fractional part?");
|
||||||
aReturn <<= lcl_getDate(nValue);
|
aReturn <<= lcl_getDate(nValue);
|
||||||
|
Reference in New Issue
Block a user