From ca32a764ef85a255c97531164bffb073553de105 Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Mon, 4 Apr 2016 14:39:53 -0400 Subject: [PATCH] layers: Fix MSVS shadowing warning in core_validation. warning 4457: declaration of 'fence' hides function parameter --- layers/core_validation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 38ea1a1..1f99480 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5070,8 +5070,8 @@ void updateTrackedCommandBuffers(layer_data *dev_data, VkQueue queue, VkQueue ot if (queue_data == dev_data->queueMap.end() || other_queue_data == dev_data->queueMap.end()) { return; } - for (auto fence : other_queue_data->second.lastFences) { - queue_data->second.lastFences.push_back(fence); + for (auto fenceInner : other_queue_data->second.lastFences) { + queue_data->second.lastFences.push_back(fenceInner); } if (fence != VK_NULL_HANDLE) { auto fence_data = dev_data->fenceMap.find(fence); -- 2.7.4