We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4118

Summary: SDL_windowswindow.c and SDL_mmjoystick.c are has shadowed declarison warnings
Product: SDL Reporter: Vitaly Novichkov <admin>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.1   
Hardware: All   
OS: Windows (All)   

Description Vitaly Novichkov 2018-03-27 08:01:16 UTC
Recently I have found that SDL_windowswindow.c and SDL_mmjoystick.c are got a set of "shadowed declarison" warnings:

https://ci.appveyor.com/project/Wohlstand/audiocodecs/build/job/sb7lsy2f7heuqp4k
Comment 1 Ozkan Sezer 2018-03-27 09:23:14 UTC
Warnings are annoying yes, but those actually look harmless.
Comment 2 Vitaly Novichkov 2018-03-27 10:41:12 UTC
It's not just a most familiar "unused" warning: Shadowed variables are jerks and may confuse you when you want to access variables with the same name in the parent scope.
Comment 3 Ryan C. Gordon 2018-08-03 21:24:11 UTC
This is fixed in https://hg.libsdl.org/SDL/rev/0e37a23d93cb, thanks!

--ryan.