HewlettPackard / gull

a multi-node fabric-attached memory manager that provides simple abstractions for accessing and allocating NVM from fabric-attached memory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solve compilation warnings

mashoodk opened this issue · comments

/home/abdulla/centos8/newboost/gull/src/shelf_usage/dclcrwlock.cc: In constructor ‘nvmm::internal::DCLCRWLock::DCLCRWLock()’:
/home/abdulla/centos8/newboost/gull/src/shelf_usage/dclcrwlock.cc:59:30: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
countersLength = numCoresDCLC_COUNTERS_RATIO;
/home/abdulla/centos8/newboost/gull/src/shelf_usage/dclcrwlock.cc:62:49: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
for (int idx = 0; idx < countersLength; idx += DCLC_COUNTERS_RATIO) {
/home/abdulla/centos8/newboost/gull/src/shelf_usage/dclcrwlock.cc: In constructor ‘nvmm::internal::DCLCRWLock::DCLCRWLock(int)’:
/home/abdulla/centos8/newboost/gull/src/shelf_usage/dclcrwlock.cc:74:31: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
countersLength = num_cores
DCLC_COUNTERS_RATIO;
/home/abdulla/centos8/newboost/gull/src/shelf_usage/dclcrwlock.cc:77:49: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
for (int idx = 0; idx < countersLength; idx += DCLC_COUNTERS_RATIO) {
/home/abdulla/centos8/newboost/gull/src/shelf_usage/dclcrwlock.cc: In member function ‘void nvmm::internal::DCLCRWLock::exclusiveLock()’:
/home/abdulla/centos8/newboost/gull/src/shelf_usage/dclcrwlock.cc:154:49: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
for (int idx = 0; idx < countersLength; idx += DCLC_COUNTERS_RATIO) {
In file included from /home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.cc:47:
/home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.h: In constructor ‘nvmm::EpochZoneHeap::EpochZoneHeap(nvmm::PoolId)’:
/home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.h:168:10: warning: ‘nvmm::EpochZoneHeap::no_bgthread_’ will be initialized after [-Wreorder]
bool no_bgthread_;
^~~~~~~~~~~~
/home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.h:144:14: warning: ‘uint64_t nvmm::EpochZoneHeap::fast_alloc_’ [-Wreorder]
uint64_t fast_alloc_;
^~~~~~~~~~~
/home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.cc:120:1: warning: when initialized here [-Wreorder]
EpochZoneHeap::EpochZoneHeap(PoolId pool_id)
^~~~~~~~~~~~~
/home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.cc: In member function ‘virtual void nvmm::EpochZoneHeap::Free(nvmm::EpochOp&, nvmm::Offset)’:
/home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.cc:961:1: warning: assuming signed overflow does not occur when reducing constant in comparison [-Wstrict-overflow]
}
^
/home/abdulla/centos8/newboost/gull/src/shelf_mgmt/pool.cc: In member function ‘bool nvmm::Pool::Verify()’:
/home/abdulla/centos8/newboost/gull/src/shelf_mgmt/pool.cc:213:16: warning: enum constant in boolean context [-Wint-in-bool-contex ]
return POOL_NOT_FOUND;
^~~~~~~~~~~~~~
/home/abdulla/centos8/newboost/gull/src/shelf_mgmt/pool.cc:217:16: warning: enum constant in boolean context [-Wint-in-bool-contex ]
return POOL_OPENED;
^~~~~~~~~~~
/home/abdulla/centos8/newboost/gull/src/shelf_mgmt/pool.cc:244:20: warning: enum constant in boolean context [-Wint-in-bool-contex ]
return POOL_INVALID_META_FILE;
^~~~~~~~~~~~~~~~~~~~~~
/home/abdulla/centos8/newboost/gull/src/shelf_mgmt/pool.cc: In member function ‘bool nvmm::Pool::FindNextShelf(nvmm::ShelfIndex&, nvmm::ShelfIndex, nvmm::ShelfIndex)’:
/home/abdulla/centos8/newboost/gull/src/shelf_mgmt/pool.cc:732:16: warning: enum constant in boolean context [-Wint-in-bool-contex ]
return POOL_CLOSED;
^~~~~~~~~~~
/home/abdulla/centos8/newboost/gull/src/shelf_mgmt/pool.cc: In member function ‘bool nvmm::Pool::CheckShelf(nvmm::ShelfIndex)’:
/home/abdulla/centos8/newboost/gull/src/shelf_mgmt/pool.cc:757:16: warning: enum constant in boolean context [-Wint-in-bool-contex ]
return POOL_CLOSED;
^~~~~~~~~~~
/home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.cc: At global scope:
/home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.cc:1453:1: warning: macro "LFS_BOOK_SIZE" is not used [-Wunused-macros]
} // namespace nvmm
^
/home/abdulla/centos8/newboost/gull/src/allocator/epoch_zone_heap.cc:1453:1: warning: macro "ASSERT_IS_CLOSED" is not used [-Wunused-macros]