SWDEV-1 - Fix warnings when building with clang++

Change-Id: Idebd2b618b9a3360147984a0e33852dbe2e65818
Этот коммит содержится в:
Jason Tang
2021-02-17 18:03:32 -05:00
коммит произвёл Jason Tang
родитель ae7cb73fe5
Коммит 0d47b06928
3 изменённых файлов: 1 добавлений и 6 удалений
+1 -1
Просмотреть файл
@@ -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;
}
-1
Просмотреть файл
@@ -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) {
-4
Просмотреть файл
@@ -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.