Commit a476abd 1 parent d972424 commit a476abd Copy full SHA for a476abd
File tree 1 file changed +4
-18
lines changed
1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 15
15
#include < tuple>
16
16
#include < type_traits>
17
17
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
29
19
#pragma warning(push)
30
- #pragma warning(disable : 5030)
20
+ #pragma warning(disable : 5030) // Allow unknown attributes.
31
21
#endif
32
22
33
23
@@ -1624,7 +1614,7 @@ struct normalized_div_args // NOLINT(cppcoreguidelines-pro-type-member-init)
1624
1614
};
1625
1615
1626
1616
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 (
1628
1618
const uint <M>& numerator, const uint <N>& denominator) noexcept
1629
1619
{
1630
1620
static constexpr auto num_numerator_words = uint <M>::num_words;
@@ -2115,10 +2105,6 @@ inline void store(uint8_t* dst, const uint256& x) noexcept
2115
2105
2116
2106
} // namespace intx
2117
2107
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
2123
2109
#pragma warning(pop)
2124
2110
#endif
You can’t perform that action at this time.
0 commit comments