Enable -Wunused-variable option for debug build

Change-Id: I73b94fad0be8fe2af01f89944528ed6210424ec5