Fix 4 MSVS warnings in loader and layers.
warning C4267: conversion, possible loss of data
warning C4389: signed/unsigned mismatch
warning C4701: potentially uninitialized local variable used
warning C4702: unreachable code
Change-Id: Ibc2ce3825a986c3701f6e0e6244a0e30fbf7e87c
diff --git a/loader/debug_report.c b/loader/debug_report.c
index 3f49aa8..4269d9d 100644
--- a/loader/debug_report.c
+++ b/loader/debug_report.c
@@ -234,7 +234,7 @@
VkDebugReportCallbackCreateInfoEXT *infos,
VkDebugReportCallbackEXT *callbacks)
{
- VkResult rtn;
+ VkResult rtn = VK_SUCCESS;
for (uint32_t i = 0 ; i < num_callbacks ; i++) {
rtn = util_CreateDebugReportCallback(inst,
&infos[i],