浏览代码

Fixed error: declaration shadows a local variable [-Werror,-Wshadow]

Sam Lantinga 1 年之前
父节点
当前提交
4c5584174b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/render/direct3d12/SDL_render_d3d12.c

+ 1 - 1
src/render/direct3d12/SDL_render_d3d12.c

@@ -1087,7 +1087,7 @@ static HRESULT D3D12_CreateDeviceResources(SDL_Renderer *renderer)
         const DXGI_FORMAT defaultRTVFormats[] = {
             DXGI_FORMAT_B8G8R8A8_UNORM,
         };
-        int i, j, k, l;
+        int j, k, l;
 
         /* Create a few default pipeline state objects, to verify that this renderer will work */
         for (i = 0; i < NUM_SHADERS; ++i) {