Skip to content

Commit 8ded45b

Browse files
committed
Fix module warnings
1 parent 01376a8 commit 8ded45b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/decimal.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,17 @@ struct numeric_limits<boost::decimal::decimal128_fast>;
123123

124124
// MSVC wants <boost/decimal> to be imported but also does not support importing it...
125125
#ifdef _MSC_VER
126+
# pragma warning( push )
126127
# pragma warning( disable : 5244 )
128+
#elif defined(__clang__)
129+
# pragma clang diagnostic push
130+
# pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
127131
#endif
128132

129133
#include <boost/decimal.hpp>
134+
135+
#ifdef _MSC_VER
136+
# pragma warning( pop )
137+
#elif defined(__clang__)
138+
# pragma clang diagnostic pop
139+
#endif

0 commit comments

Comments
 (0)