Fix some warnings

This commit is contained in:
Georg Hagen
2024-10-07 10:02:30 +02:00
parent 45b5fe2c26
commit f60b803bda
5 changed files with 10 additions and 7 deletions

View File

@@ -22,6 +22,8 @@ namespace OpenVulkano
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wswitch"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch"
constexpr mode_t GetFileType(std::filesystem::file_type type)
{
switch (type)
@@ -51,6 +53,7 @@ namespace OpenVulkano
}
return std::filesystem::file_type::unknown;
}
#pragma GCC diagnostic pop
#pragma clang diagnostic pop
template<bool BLOCK_WRITE = false>