aboutsummaryrefslogtreecommitdiff
path: root/layers/mem_tracker.cpp
diff options
context:
space:
mode:
authorIan Elliott <ian@LunarG.com>2015-04-28 16:11:24 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-04-29 14:41:48 -0600
commit8fe4d85e0e2e12e54c16c965fa2ff10cef5b981b (patch)
tree80d8d46c7137ef76b77e0c30d14b10772811cede /layers/mem_tracker.cpp
parenta748eaffa12bfe9530c6d38496a762e99a41dcab (diff)
downloadusermoji-8fe4d85e0e2e12e54c16c965fa2ff10cef5b981b.tar.xz
layers: Eliminate compiler warnings on Windows.
This includes suppressing compiler warning C4065, where VS complains if a switch statement has a "default", but not "case" statements. This was true in many functions of the auto-generated "helper" header files. This also includes removing unreferenced local variables, and dealing with some type differences (sometimes with casting, sometimes with changing the type).
Diffstat (limited to 'layers/mem_tracker.cpp')
-rw-r--r--layers/mem_tracker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp
index 8f1961c9..de5ef197 100644
--- a/layers/mem_tracker.cpp
+++ b/layers/mem_tracker.cpp
@@ -1008,7 +1008,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkGetGlobalExtensionInfo(
size_t *pDataSize,
void *pData)
{
- // This entrypoint is NOT going to init its own dispatch table since loader calls here early
+ /* This entrypoint is NOT going to init it's own dispatch table since loader calls here early */
VkExtensionProperties *ext_props;
uint32_t *count;
@@ -1136,7 +1136,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkQueueRemoveMemReferences(
sprintf(str, "Unknown Queue %p", queue);
layerCbMsg(VK_DBG_MSG_ERROR, VK_VALIDATION_LEVEL_0, queue, 0, MEMTRACK_INVALID_QUEUE, "MEM", str);
} else {
- for (int i = 0; i < count; i++) {
+ for (uint32_t i = 0; i < count; i++) {
if (pQueueInfo->pMemRefList.size() > 0) {
for (list<VkDeviceMemory>::iterator it = pQueueInfo->pMemRefList.begin(); it != pQueueInfo->pMemRefList.end();) {
if ((*it) == pMems[i]) {