Skip to content

Commit ff23c9a

Browse files
author
Roy
committed
D::name was unused
1 parent 7cb053a commit ff23c9a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/boost/json/detail/value_to.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,15 @@ value_to_impl(
372372

373373
using Ds = described_members<T>;
374374
using D = boost::mp11::mp_first<Ds>;
375-
375+
//This is to avoid the non used warning
376+
(void)D::name;
377+
376378
BOOST_JSON_INTRUSIVE_MESSAGE(
377379
std::format(
378380
"while processing array {} in {}, found {} element expected {}",
379381
D::name, BOOST_JSON_INTRUSIVE::composePath(),
380382
arr->size(), N));
381-
383+
382384
return {boost::system::in_place_error, ec};
383385
}
384386

0 commit comments

Comments
 (0)