File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ auto decode_tests(Builder &_, Callable &&do_decode) {
91
91
92
92
_.test (" string" , [do_decode]() {
93
93
auto data = make_data<InType>(" 4:spam" );
94
- auto within_data_memory = within_memory (data);
94
+ // Silence GCC < 10.
95
+ [[maybe_unused]] auto within_data_memory = within_memory (data);
95
96
96
97
auto value = do_decode (data);
97
98
auto str = get<typename OutType::string>(value);
@@ -111,7 +112,8 @@ auto decode_tests(Builder &_, Callable &&do_decode) {
111
112
112
113
_.test (" dict" , [do_decode]() {
113
114
auto data = make_data<InType>(" d4:spami42ee" );
114
- auto within_data_memory = within_memory (data);
115
+ // Silence GCC < 10.
116
+ [[maybe_unused]] auto within_data_memory = within_memory (data);
115
117
116
118
auto value = do_decode (data);
117
119
auto dict = get<typename OutType::dict>(value);
You can’t perform that action at this time.
0 commit comments