warning C4189 local variable initialized but not referenced

Change-Id: I6047e0fc10bb6de0009da40855a97df89904cb0c
warning C4245 signed/unsigned mismatch

Change-Id: If6222d61a6c75996ce5c40b3eae7895982c49b4a