nicklockwood / AsyncImageView

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#asyncimageview
Other
906 stars 186 forks source link

warning about shadowed local variable #17

Open bastianh opened 12 years ago

bastianh commented 12 years ago

I know that's not a standard warning but I think it's a good idea to have it activated.

AsyncImageView.m:477:31: warning: declaration shadows a local variable [-Wshadow]
        AsyncImageConnection *connection = [_connections objectAtIndex:i];

You are using the connection name already outside of the loop in the same function

jweyrich commented 11 years ago

https://github.com/nicklockwood/AsyncImageView/pull/23 should fix this.