Skip to content

Commit d1dd248

Browse files
Fix uninitialized-use warning (#905)
Warning became a hard error following #890. Mark the offending code path as unreachable.
1 parent df17e90 commit d1dd248

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libmongoc/tests/test-mongoc-client-side-encryption.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,6 +2741,8 @@ _tls_test_make_client_encryption (mongoc_client_t *keyvault_client,
27412741
tmp_bson ("{'kmip': { 'endpoint': '127.0.0.1:8001' }}"));
27422742
bson_concat (tls_opts,
27432743
tmp_bson ("{'kmip': {'tlsCaFile': '%s'} }", ca_file));
2744+
} else {
2745+
BSON_UNREACHABLE ("Invalid value for test_ce");
27442746
}
27452747

27462748
client_encryption_opts = mongoc_client_encryption_opts_new ();

0 commit comments

Comments
 (0)