Clang 3.0: Fixed some shadowing, conversion, and unreachable code warnings

These warnings were obtained with -Weverything.