This is an automated email from the ASF dual-hosted git repository.
absurdfarce pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-cpp-driver.git
The following commit(s) were added to refs/heads/trunk by this push:
new ddd8fe8e Add void* cast for memset, and update declaration syntax to
c89 format for fill_fopen_filefunc.
ddd8fe8e is described below
commit ddd8fe8eaa55b54ebd1868b396698848e03667af
Author: Peter da Silva <[email protected]>
AuthorDate: Mon Sep 21 17:54:20 2026 +0000
Add void* cast for memset, and update declaration syntax to c89 format for
fill_fopen_filefunc.
---
src/md5.cpp | 2 +-
src/third_party/minizip/ioapi.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/md5.cpp b/src/md5.cpp
index a9526e4f..62226a37 100644
--- a/src/md5.cpp
+++ b/src/md5.cpp
@@ -146,7 +146,7 @@ void Md5::final(uint8_t* result) {
result[14] = static_cast<uint8_t>(d_ >> 16);
result[15] = static_cast<uint8_t>(d_ >> 24);
- memset(this, 0, sizeof(Md5));
+ memset((void *)this, 0, sizeof(Md5));
}
// This processes one or more 64-byte data blocks, but does NOT update
diff --git a/src/third_party/minizip/ioapi.c b/src/third_party/minizip/ioapi.c
index 82299e02..a375c7ff 100644
--- a/src/third_party/minizip/ioapi.c
+++ b/src/third_party/minizip/ioapi.c
@@ -221,8 +221,7 @@ static int ZCALLBACK ferror_file_func (voidpf opaque,
voidpf stream)
return ret;
}
-void fill_fopen_filefunc (pzlib_filefunc_def)
- zlib_filefunc_def* pzlib_filefunc_def;
+void fill_fopen_filefunc (zlib_filefunc_def* pzlib_filefunc_def)
{
pzlib_filefunc_def->zopen_file = fopen_file_func;
pzlib_filefunc_def->zread_file = fread_file_func;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]