Skip to content

neutral refactorings to silence Xcode 4.5.2 warnings#5

Open
algal wants to merge 6 commits into
tylerneylon:masterfrom
algal:master
Open

neutral refactorings to silence Xcode 4.5.2 warnings#5
algal wants to merge 6 commits into
tylerneylon:masterfrom
algal:master

Conversation

@algal

@algal algal commented Jan 4, 2013

Copy link
Copy Markdown

These changes silence compiler warnings by fixing small bugs or clarifying the code to help the static analyzer.

Fixes:

  • initialized some function local variable at their declaration
  • corrected a NSLog format specifier

hints:

  • use standard Obj-C idiom to initialize ivars
  • rename local vars so they don't shadow vars from the enclosing scope
  • enhance conditional to silence warning about div-by-zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant