warnings: fix unused variable

Change-Id: I45dfd9f7361ac009c4ba457576b6f1ec94dac3c0