SWDEV-1 - Fix warnings when building with clang++
Change-Id: Idebd2b618b9a3360147984a0e33852dbe2e65818
Этот коммит содержится в:
коммит произвёл
Jason Tang
родитель
ae7cb73fe5
Коммит
0d47b06928
@@ -812,7 +812,7 @@ bool Os::MemoryMapFile(const char* fname, const void** mmap_ptr, size_t* mmap_si
|
||||
}
|
||||
|
||||
bool Os::MemoryMapFileTruncated(const char* fname, const void** mmap_ptr, size_t mmap_size) {
|
||||
if ((mmap_ptr == nullptr)) {
|
||||
if (mmap_ptr == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -702,7 +702,6 @@ void Image::initDeviceMemory() {
|
||||
deviceMemories_ = reinterpret_cast<DeviceMemory*>(reinterpret_cast<char*>(this) + sizeof(Image));
|
||||
memset(deviceMemories_, 0, NumDevicesWithP2P() * sizeof(DeviceMemory));
|
||||
}
|
||||
bool Image::create(void* initFrom) { return Memory::create(initFrom); }
|
||||
|
||||
size_t Image::Format::getNumChannels() const {
|
||||
switch (image_channel_order) {
|
||||
|
||||
@@ -584,10 +584,6 @@ class Image : public Memory {
|
||||
|
||||
//! Sets the byte pitch obtained from HWL
|
||||
void setBytePitch(size_t bytePitch) { impl_.bp_ = bytePitch; }
|
||||
|
||||
//! Creates and initializes device (cache) memory for all devices
|
||||
bool create(void* initFrom = NULL //!< Pointer to the initialization data
|
||||
);
|
||||
};
|
||||
|
||||
//! SVM-related functionality.
|
||||
|
||||
Ссылка в новой задаче
Block a user