diff options
author | Balazs Varga <balazs.varga991@gmail.com> | 2022-06-09 09:58:34 +0200 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2022-06-09 11:04:12 +0200 |
commit | 246d4f14c347ddd8cf49a397984a5f13c9687896 (patch) | |
tree | 5c90c74c00d7ebf5b0055d29984da06b38a5d364 /include/basegfx/range | |
parent | be39eba9a3d81e20c42f1073a365e91ce855c1cd (diff) |
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.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'include/basegfx/range')
-rw-r--r-- | include/basegfx/range/basicrange.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
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 |