Skip to content

Commit fc4c3d7

Browse files
use pointer cast to avoid an unnecessary warning from gcc
1 parent 7e1e969 commit fc4c3d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/StatFile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ namespace istat
9898
void StatFile::open(std::string const &path, Settings const *init, bool forUpdate, bool forceCreate)
9999
{
100100
Log(LL_Debug, "istat") << "StatFile::open opening " << path;
101-
memset(expBucket, 0, sizeof(expBucket));
101+
memset(reinterpret_cast<void *>(expBucket), 0, sizeof(expBucket));
102102
memset(pages, 0, sizeof(pages));
103103
lruNextPage_ = 0;
104104
fileWritable_ = forUpdate;

0 commit comments

Comments
 (0)