Fix clang issues.
Actually use calculated value
Merge pull request #3572 from ktf/fix-unused-variable

Clang -- Fix misc bugs discovered by clang.
Merge remote branch 'origin/CMSSW_7_1_X' into CMSSW_7_0_X