File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ int EXAMPLES_CDECL main() {
111111 // usually we don't need to actually use a switch statement, because we can also
112112 // get a variant 'value' that can hold any BSON type.
113113 types::bson_value::view doc_ele_val{doc_ele.get_value ()};
114+ (void )doc_ele_val;
114115 }
115116
116117 // If we want to search for an element we can use operator[]
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ void test_kill_cursors() {
138138
139139 auto cursors_killed_elem = event[" command_succeeded_event" ][" reply" ][" cursorsKilled" ];
140140 auto cursors_killed_val = cursors_killed_elem.get_value ();
141- auto cursors_killed_arr = cursors_killed_elem .get_array ();
141+ auto cursors_killed_arr = cursors_killed_val .get_array ();
142142 auto cursors_killed = cursors_killed_arr.value ;
143143
144144 if (std::find (cursors_killed.cbegin (), cursors_killed.cend (), cursor_id_val.view ()) !=
You can’t perform that action at this time.
0 commit comments