pragma.patch 733 B

12345678910111213141516171819202122232425
  1. diff --git a/include/mapbox/geometry/point.hpp b/include/mapbox/geometry/point.hpp
  2. index da8d677..4d49ba5 100644
  3. --- a/include/mapbox/geometry/point.hpp
  4. +++ b/include/mapbox/geometry/point.hpp
  5. @@ -21,8 +21,10 @@ struct point
  6. T y;
  7. };
  8. +#if defined(__GNUC__)
  9. #pragma GCC diagnostic push
  10. #pragma GCC diagnostic ignored "-Wfloat-equal"
  11. +#endif
  12. template <typename T>
  13. constexpr bool operator==(point<T> const& lhs, point<T> const& rhs)
  14. @@ -30,7 +32,9 @@ constexpr bool operator==(point<T> const& lhs, point<T> const& rhs)
  15. return lhs.x == rhs.x && lhs.y == rhs.y;
  16. }
  17. +#if defined(__GNUC__)
  18. #pragma GCC diagnostic pop
  19. +#endif
  20. template <typename T>
  21. constexpr bool operator!=(point<T> const& lhs, point<T> const& rhs)