warnings: fix 'defined but not used'

Change-Id: I8a5dad1a5c3c83bdfb6f99ea42872d65f08f1f7a