Fail build on warning C4715

This commit is contained in:
Georg Hagen
2024-08-16 12:44:37 +02:00
parent 731e5a7122
commit 5d80414956
2 changed files with 2 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ function(SetWarningSettings TARGET)
if (MSVC) if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_CRT_SECURE_NO_WARNINGS)
set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "/wd4068") set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "/wd4068")
set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "/we4715")
set_target_properties(${TARGET} PROPERTIES LINK_FLAGS "/ignore:4099") set_target_properties(${TARGET} PROPERTIES LINK_FLAGS "/ignore:4099")
endif() endif()
endif() endif()

View File

@@ -246,6 +246,7 @@ namespace OpenVulkano
|| format >= ASTC_4x4_SFLOAT_BLOCK && format <= PVRTC2_4BPP_SRGB_BLOCK_IMG; || format >= ASTC_4x4_SFLOAT_BLOCK && format <= PVRTC2_4BPP_SRGB_BLOCK_IMG;
} }
} }
return false;
} }
size_t DataFormat::CalculatedSize(uint32_t& width, uint32_t& height) size_t DataFormat::CalculatedSize(uint32_t& width, uint32_t& height)