bump product version to 7.2.5.1
[LibreOffice.git] / external / skia / clang-attributes-warning.patch.1
blob6384735e9c0541b34ec8a8a48853a65ce267d1bf
1 diff --git a/include/private/SkFloatingPoint.h b/include/private/SkFloatingPoint.h
2 index 3c6d22c310..60500b2d2c 100644
3 --- a/include/private/SkFloatingPoint.h
4 +++ b/include/private/SkFloatingPoint.h
5 @@ -159,7 +159,9 @@ static inline int64_t sk_float_saturate2int64(float x) {
6  // Cast double to float, ignoring any warning about too-large finite values being cast to float.
7  // Clang thinks this is undefined, but it's actually implementation defined to return either
8  // the largest float or infinity (one of the two bracketing representable floats).  Good enough!
9 +#if defined(__clang__)
10  SK_ATTRIBUTE(no_sanitize("float-cast-overflow"))
11 +#endif
12  static inline float sk_double_to_float(double x) {
13      return static_cast<float>(x);
14  }
15 @@ -242,12 +244,16 @@ static inline int sk_float_nextlog2(float x) {
16  // IEEE defines how float divide behaves for non-finite values and zero-denoms, but C does not
17  // so we have a helper that suppresses the possible undefined-behavior warnings.
19 +#if defined(__clang__)
20  SK_ATTRIBUTE(no_sanitize("float-divide-by-zero"))
21 +#endif
22  static inline float sk_ieee_float_divide(float numer, float denom) {
23      return numer / denom;
24  }
26 +#if defined(__clang__)
27  SK_ATTRIBUTE(no_sanitize("float-divide-by-zero"))
28 +#endif
29  static inline double sk_ieee_double_divide(double numer, double denom) {
30      return numer / denom;
31  }