🔧 build(compile Werror): reduce warning
This commit is contained in:
10
deps/dablooms/dablooms.cpp
vendored
10
deps/dablooms/dablooms.cpp
vendored
@@ -189,16 +189,8 @@ int bitmap_check(bitmap_t *bitmap, unsigned int index, long offset)
|
||||
|
||||
int bitmap_flush(bitmap_t *bitmap)
|
||||
{
|
||||
#if 0
|
||||
if ((msync(bitmap->array, bitmap->bytes, MS_SYNC) < 0)) {
|
||||
perror("Error, flushing bitmap to disk");
|
||||
return -1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
if(bitmap==NULL)return -1;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user