Skip to content

Commit b56afe1

Browse files
committed
Ignore warnings coming out of boost log
1 parent 5d79173 commit b56afe1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

test/github_issue_1384.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@
44
//
55
// See: https://github.com/boostorg/decimal/issues/1384
66

7+
#ifdef __clang__
8+
#pragma clang diagnostic push
9+
#pragma clang diagnostic ignored "-Wold-style-cast"
10+
#elif defined(__GNUC__)
11+
#pragma GCC diagnostic push
12+
#pragma GCC diagnostic ignored "-Wold-style-cast"
13+
#endif
14+
715
#include <boost/log/trivial.hpp>
16+
17+
#ifdef __clang__
18+
#pragma clang diagnostic pop
19+
#elif defined(__GNUC__)
20+
#pragma GCC diagnostic pop
21+
#endif
22+
823
#include <boost/core/lightweight_test.hpp>
924
#include <boost/decimal.hpp>
1025

0 commit comments

Comments
 (0)