Skip to content

Commit 4c86689

Browse files
committed
Ignore GCC-13 array bounds warning
1 parent 8a49018 commit 4c86689

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/boost/decimal/detail/power_tables.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,17 @@ static_assert(sizeof(emulated_256_pow10) == sizeof(boost::decimal::detail::uint2
208208

209209
} // namespace impl
210210

211+
#if defined(__GNUC__) && __GNUC__ >= 7
212+
# pragma GCC diagnostic push
213+
# pragma GCC diagnostic ignored "-Warray-bounds"
214+
#endif
215+
211216
template <typename T>
212217
constexpr auto pow10(T n) noexcept -> T
213218
{
214219
return static_cast<T>(impl::powers_of_10[static_cast<std::size_t>(n)]);
215220
}
216221

217-
#if defined(__GNUC__) && __GNUC__ >= 7
218-
# pragma GCC diagnostic push
219-
# pragma GCC diagnostic ignored "-Warray-bounds"
220-
#endif
221-
222222
template <>
223223
constexpr auto pow10(const boost::int128::uint128_t n) noexcept -> boost::int128::uint128_t
224224
{

0 commit comments

Comments
 (0)