include/basegfx/range/basicrange.hxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 246d4f14c347ddd8cf49a397984a5f13c9687896
Author:     Balazs Varga <balazs.varga...@gmail.com>
AuthorDate: Thu Jun 9 09:58:34 2022 +0200
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Thu Jun 9 11:04:12 2022 +0200

    Ignore warning C4723 for windows arm64 build
    
    Tinderbox message from windows arm64 build:
    
C:\cygwin\home\tdf\jenkins\daily_workspace\tb\src_master\include\basegfx\range\basicrange.hxx(276)
 :
    error C2220: the following warning is treated as an error
    
C:\cygwin\home\tdf\jenkins\daily_workspace\tb\src_master\include\basegfx\range\basicrange.hxx(276)
 :
    warning C4723: potential divide by 0
    LINK : fatal error LNK1257: code generation failed
    
    Change-Id: I86ce1a0ea6abdf46464dcac95b9b591120782a13
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135523
    Tested-by: Thorsten Behrens <thorsten.behr...@allotropia.de>
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/include/basegfx/range/basicrange.hxx 
b/include/basegfx/range/basicrange.hxx
index 66a59d779e69..53134cd9e0eb 100644
--- a/include/basegfx/range/basicrange.hxx
+++ b/include/basegfx/range/basicrange.hxx
@@ -269,6 +269,10 @@ namespace basegfx
             }
         }
 
+#if defined _MSC_VER && defined(_M_ARM64)
+#pragma warning(push)
+#pragma warning(disable: 4723) /* ignore: warning for C4723 on windows arm64 
build */
+#endif
         typename Traits::DifferenceType getRange() const
         {
             if(isEmpty())
@@ -280,6 +284,9 @@ namespace basegfx
                 return (mnMaximum - mnMinimum);
             }
         }
+#if defined _MSC_VER && defined(_M_ARM64)
+#pragma warning( pop )
+#endif
     };
 
     // some pre-fabricated traits

Reply via email to