Adding -Wall and -Werror

I'm surprised to see that variable name shadowing causes a warning.