warnings: fix 'defined but not used'

Change-Id: Ibc2347344716b82a2fcf3c9deeb52a0fbd50e822