Fix some potential warnings on unused functions and implicit cast

Change-Id: I216935236d0f5073c4f975977572c558cf892328
3 files changed