Warnings correction (un-used temp variables mainly).