layers: Fix MSVS shadowing warning in core_validation.
authorJamie Madill <jmadill@chromium.org>
Mon, 4 Apr 2016 18:39:53 +0000 (14:39 -0400)
committerDustin Graves <dustin@lunarg.com>
Mon, 4 Apr 2016 20:21:53 +0000 (14:21 -0600)
warning 4457: declaration of 'fence' hides function parameter

layers/core_validation.cpp

index 38ea1a1f96f66b77d8f9476a2e30598a2c620bfd..1f99480eee350dccc868486390e61e2344415be5 100644 (file)
@@ -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);