Various warnings fixed (unused-variable)

Signed-off-by: ptmr3 <ptmr323@gmail.com>