diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-05-17 10:09:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-05-17 10:09:30 +0200 |
commit | 1c90deaa3f03978fcd31e8cf5c71e39cea455326 (patch) | |
tree | d9a86bcee96a6f5172d52786de0b19cb62095a7e /xmloff/source/forms | |
parent | 3c8b38521aa584704cfa153c51fb15ca601daf9f (diff) |
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
Diffstat (limited to 'xmloff/source/forms')
-rw-r--r-- | xmloff/source/forms/propertyimport.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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); |