1
0
Fork 0
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:
Steffen Vogel 2021-09-19 19:16:32 +02:00
parent 2e9cd09028
commit 6a217ddaf2
3 changed files with 6 additions and 3 deletions

View file

@ -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) {}

View file

@ -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

View file

@ -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) :