Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2acb674

Browse files
Fix -Wunused-variable Clang warnings (#1443)
1 parent 54f58f4 commit 2acb674

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎examples/bsoncxx/view_and_value.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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[]

‎src/mongocxx/test/spec/mongohouse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()) !=

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /