소스 검색

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) {