Skip to content

Commit a476abd

Browse files
committed
cleanup
1 parent d972424 commit a476abd

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

include/intx/intx.hpp

+4-18
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,9 @@
1515
#include <tuple>
1616
#include <type_traits>
1717

18-
#if defined(__clang__)
19-
#pragma clang diagnostic push
20-
#pragma clang diagnostic ignored "-Wunknown-attributes"
21-
#elif defined(__GNUC__)
22-
#pragma GCC diagnostic push
23-
#if __GNUC__ >= 12
24-
#pragma GCC diagnostic ignored_attributes "vend::"
25-
#else
26-
#pragma GCC diagnostic ignored "-Wattributes"
27-
#endif
28-
#elif defined(_MSC_VER)
18+
#ifdef _MSC_VER
2919
#pragma warning(push)
30-
#pragma warning(disable : 5030)
20+
#pragma warning(disable : 5030) // Allow unknown attributes.
3121
#endif
3222

3323

@@ -1624,7 +1614,7 @@ struct normalized_div_args // NOLINT(cppcoreguidelines-pro-type-member-init)
16241614
};
16251615

16261616
template <unsigned M, unsigned N>
1627-
[[gnu::always_inline, vend::unknown]] inline normalized_div_args<M, N> normalize(
1617+
[[gnu::always_inline]] inline normalized_div_args<M, N> normalize(
16281618
const uint<M>& numerator, const uint<N>& denominator) noexcept
16291619
{
16301620
static constexpr auto num_numerator_words = uint<M>::num_words;
@@ -2115,10 +2105,6 @@ inline void store(uint8_t* dst, const uint256& x) noexcept
21152105

21162106
} // namespace intx
21172107

2118-
#if defined(__clang__)
2119-
#pragma clang diagnostic pop
2120-
#elif defined(__GNUC__)
2121-
#pragma GCC diagnostic pop
2122-
#elif defined(_MSC_VER)
2108+
#ifdef _MSC_VER
21232109
#pragma warning(pop)
21242110
#endif

0 commit comments

Comments
 (0)