Enabled -Wall and -Wextra (Xcode 4.6.2) and fixed the resulting warnings.