Enable extended compiler warnings and resolve occurring ones
This commit is contained in:
parent
4a7e4efe26
commit
7beb7f1198
@ -9,6 +9,8 @@ ACTIVATE_CPP14()
|
|||||||
|
|
||||||
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
|
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
|
||||||
|
|
||||||
|
ENABLE_STYLE_WARNINGS()
|
||||||
|
|
||||||
# You can safely delete lines from here...
|
# You can safely delete lines from here...
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -24,16 +24,19 @@ public:
|
|||||||
case fspp::Dir::EntryType::DIR:
|
case fspp::Dir::EntryType::DIR:
|
||||||
mode |= S_IFDIR;
|
mode |= S_IFDIR;
|
||||||
break;
|
break;
|
||||||
|
case fspp::Dir::EntryType::SYMLINK:
|
||||||
|
mode |= S_IFLNK;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
assert((S_ISREG(mode) && type == fspp::Dir::EntryType::FILE) || (S_ISDIR(mode) && type == fspp::Dir::EntryType::DIR) || (type == fspp::Dir::EntryType::SYMLINK));
|
assert((S_ISREG(mode) && type == fspp::Dir::EntryType::FILE) || (S_ISDIR(mode) && type == fspp::Dir::EntryType::DIR) || (S_ISLNK(mode) && type == fspp::Dir::EntryType::SYMLINK));
|
||||||
}
|
}
|
||||||
|
|
||||||
fspp::Dir::EntryType type;
|
fspp::Dir::EntryType type;
|
||||||
std::string name;
|
std::string name;
|
||||||
blockstore::Key key;
|
blockstore::Key key;
|
||||||
|
mode_t mode;
|
||||||
uid_t uid;
|
uid_t uid;
|
||||||
gid_t gid;
|
gid_t gid;
|
||||||
mode_t mode;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static std::unique_ptr<DirBlob> InitializeEmptyDir(std::unique_ptr<blobstore::Blob> blob, CryDevice *device);
|
static std::unique_ptr<DirBlob> InitializeEmptyDir(std::unique_ptr<blobstore::Blob> blob, CryDevice *device);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user