Skip to content

Commit 3e6d56e

Browse files
authored
CDRIVER-4781 add void* cast in test (#1476)
1 parent 42ff072 commit 3e6d56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ test_stream_writev_timeout (void)
220220
bson_error_t error;
221221

222222
uint8_t data[1] = {0};
223-
mongoc_iovec_t iov = {.iov_base = data, .iov_len = 1u};
223+
mongoc_iovec_t iov = {.iov_base = (void *) data, .iov_len = 1u};
224224

225225
// A positive timeout value should be forwarded as-is to the writev function.
226226
{

0 commit comments

Comments
 (0)