[Libreoffice-commits] core.git: xmloff/source

Stephan Bergmann sbergman at redhat.com
Thu May 17 08:11:04 UTC 2018


 xmloff/source/forms/propertyimport.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1c90deaa3f03978fcd31e8cf5c71e39cea455326
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu May 17 10:09:30 2018 +0200

    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

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);


More information about the Libreoffice-commits mailing list