mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cppcheck fixes
This commit is contained in:
parent
2e9cd09028
commit
6a217ddaf2
3 changed files with 6 additions and 3 deletions
|
@ -41,6 +41,9 @@ class MemoryBlock {
|
|||
public:
|
||||
using deallocator_fn = std::function<void(MemoryBlock*)>;
|
||||
|
||||
using Ptr = std::shared_ptr<MemoryBlock>;
|
||||
|
||||
// cppcheck-suppress passedByValue
|
||||
MemoryBlock(size_t offset, size_t size, MemoryManager::AddressSpaceId addrSpaceId) :
|
||||
offset(offset), size(size), addrSpaceId(addrSpaceId) {}
|
||||
|
||||
|
|
|
@ -230,8 +230,8 @@ public:
|
|||
MemoryTranslation
|
||||
getTranslation(AddressSpaceId fromAddrSpaceId, AddressSpaceId toAddrSpaceId);
|
||||
|
||||
MemoryTranslation
|
||||
getTranslationFromProcess(AddressSpaceId foreignAddrSpaceId)
|
||||
// cppcheck-suppress passedByValue
|
||||
MemoryTranslation getTranslationFromProcess(AddressSpaceId foreignAddrSpaceId)
|
||||
{ return getTranslation(getProcessAddressSpace(), foreignAddrSpaceId); }
|
||||
|
||||
static std::string
|
||||
|
|
|
@ -70,7 +70,7 @@ HostRam::HostRamAllocator::allocateBlock(size_t size)
|
|||
return mem;
|
||||
}
|
||||
|
||||
|
||||
// cppcheck-suppress passedByValue
|
||||
LinearAllocator::LinearAllocator(MemoryManager::AddressSpaceId memoryAddrSpaceId,
|
||||
size_t memorySize,
|
||||
size_t internalOffset) :
|
||||
|
|
Loading…
Add table
Reference in a new issue