warnings: fix 'defined but not used'

Change-Id: I2d0c7d1c5c697e77093083aecd4629cbd7848009