File tree Expand file tree Collapse file tree 3 files changed +2
-36
lines changed Expand file tree Collapse file tree 3 files changed +2
-36
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ else ()
94
94
INTERFACE
95
95
-Wall
96
96
-Wdeprecated
97
+ $<$<BOOL :${is_clang} >:-Wno-deprecated-declarations>
97
98
$<$<BOOL :${wextra} >:-Wextra -Wno-unused-parameter>
98
99
$<$<BOOL :${werr} >:-Werror>
99
100
-fstack-protector
Original file line number Diff line number Diff line change 22
22
23
23
#include < xrpl/basics/contract.h>
24
24
25
- #if defined(__clang__)
26
- #pragma clang diagnostic push
27
- #pragma clang diagnostic ignored "-Wdeprecated"
28
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
29
- #endif
30
-
31
25
#include < boost/outcome.hpp>
32
26
33
- #if defined(__clang__)
34
- #pragma clang diagnostic pop
35
- #endif
36
-
37
27
#include < stdexcept>
38
28
39
29
namespace ripple {
Original file line number Diff line number Diff line change 24
24
#include < boost/container/flat_set.hpp>
25
25
#include < boost/endian/conversion.hpp>
26
26
27
- /*
28
-
29
- Workaround for overzealous clang warning, which trips on libstdc++ headers
30
-
31
- In file included from
32
- /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:61:
33
- /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8:
34
- error: 'get_temporary_buffer<std::pair<ripple::Quality, const
35
- std::vector<std::unique_ptr<ripple::Step>> *>>' is deprecated
36
- [-Werror,-Wdeprecated-declarations] 263 |
37
- std::get_temporary_buffer<value_type>(_M_original_len));
38
- ^
39
- */
40
-
41
- #if defined(__clang__)
42
- #pragma clang diagnostic push
43
- #pragma clang diagnostic ignored "-Wdeprecated"
44
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
45
- #endif
46
-
47
- #include < functional>
48
-
49
- #if defined(__clang__)
50
- #pragma clang diagnostic pop
51
- #endif
52
-
53
27
#include < array>
54
28
#include < chrono>
55
29
#include < cstring>
30
+ #include < functional>
56
31
#include < memory>
57
32
#include < string>
58
33
#include < system_error>
You can’t perform that action at this time.
0 commit comments