[trunk] Remove 2 warnings about set but not used variables
[trunk] remove a warning when using strict prototype
[trunk] Fix warnings about shadow variables
[trunk] Make sure to always initialize variable