@@ -46,13 +46,13 @@ Writer::OutputArrayType Writer::add_array_to_object(
4646}
4747
4848Writer::OutputObjectType Writer::add_object_to_array (const size_t _size,
49- OutputArrayType*) const {
49+ OutputArrayType* /* _parent */ ) const {
5050 return new_object (_size);
5151}
5252
5353Writer::OutputObjectType Writer::add_object_to_object (
5454 const std::string_view& _name, const size_t _size,
55- OutputObjectType*) const {
55+ OutputObjectType* /* _parent */ ) const {
5656 auto err = msgpack_pack_str (pk_, _name.size ());
5757 if (err) {
5858 throw std::runtime_error (" Could not pack field name: '" +
@@ -66,7 +66,7 @@ Writer::OutputObjectType Writer::add_object_to_object(
6666 return new_object (_size);
6767}
6868
69- Writer::OutputVarType Writer::add_null_to_array (OutputArrayType*) const {
69+ Writer::OutputVarType Writer::add_null_to_array (OutputArrayType* /* _parent */ ) const {
7070 const auto err = msgpack_pack_nil (pk_);
7171 if (err) {
7272 throw std::runtime_error (" Could not add nil to array." );
@@ -110,7 +110,7 @@ Writer::OutputArrayType Writer::new_array(const size_t _size) const {
110110Writer::OutputObjectType Writer::new_object (const size_t _size) const {
111111 const auto err = msgpack_pack_map (pk_, _size);
112112 if (err) {
113- throw std::runtime_error (" Could not pack array ." );
113+ throw std::runtime_error (" Could not pack object ." );
114114 }
115115 return OutputObjectType{};
116116}
0 commit comments