mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixed compiler warnings from gcc 7.4.1
- Fixed possible error in rocksdb/rdb_datadic.cc
This commit is contained in:
@@ -190,7 +190,7 @@ bool CloseMemMap(void *memory, size_t dwSize)
|
||||
{
|
||||
if (memory) {
|
||||
// All this must be redesigned
|
||||
int rc = msync((char*)memory, dwSize, MS_SYNC);
|
||||
int rc __attribute__((unused))= msync((char*)memory, dwSize, MS_SYNC);
|
||||
return (munmap((char*)memory, dwSize) < 0) ? true : false;
|
||||
} else
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user