Fix variable declaration and enable warnings in job.

Change-Id: I5c674e2b201a140153fdb950c82f254e106407c9
Merge "Fix variable declaration and enable warnings in job."