Now that -Wall is turned on, it's possible to remove all sort of unused / unread variables and even fix one case of a missing initialization.
The code uses some constructs that cause compilers to spit out warnings. As they do no harm, one should be able to turn off such warnings and enable others if needed.