Skip to content

Commit 28d6641

Browse files
authored
eliminate dead store operations that caused scan-build failures (#959)
1 parent 21f8bd5 commit 28d6641

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/libmongoc/src/mongoc/mongoc-cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ mongoc_cmd_parts_assemble (mongoc_cmd_parts_t *parts,
827827
const char *cmd_name;
828828
bool is_get_more;
829829
const mongoc_read_prefs_t *prefs_ptr;
830-
mongoc_read_mode_t mode = mongoc_read_prefs_get_mode (parts->read_prefs);
830+
mongoc_read_mode_t mode;
831831
bool ret = false;
832832

833833
ENTRY;

src/libmongoc/tests/test-mongoc-topology.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,6 @@ test_compatible_null_error_pointer (void)
17471747
mock_server_run (server);
17481748
client =
17491749
test_framework_client_new_from_uri (mock_server_get_uri (server), NULL);
1750-
td = mc_tpld_unsafe_get_const (client->topology);
17511750

17521751
/* trigger connection, fails due to incompatibility */
17531752
ASSERT (!mongoc_client_command_simple (

0 commit comments

Comments
 (0)