Skip to content

Commit ee87316

Browse files
committed
Ignore GCC-14 array bounds warning
1 parent 78a9e7d commit ee87316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/decimal/detail/power_tables.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ constexpr auto pow10(T n) noexcept -> T
215215
return static_cast<T>(impl::powers_of_10[static_cast<std::size_t>(n)]);
216216
}
217217

218-
#if defined(__GNUC__) && __GNUC__ == 7
218+
#if defined(__GNUC__) && __GNUC__ >= 7
219219
# pragma GCC diagnostic push
220220
# pragma GCC diagnostic ignored "-Warray-bounds"
221221
#endif
@@ -241,7 +241,7 @@ constexpr auto pow10(detail::uint128_t n) noexcept -> detail::uint128_t
241241

242242
#endif
243243

244-
#if defined(__GNUC__) && __GNUC__ == 7
244+
#if defined(__GNUC__) && __GNUC__ >= 7
245245
# pragma GCC diagnostic pop
246246
#endif
247247

0 commit comments

Comments
 (0)