Enable compiler warnings as errors Fix the one error by switching to a non-deprecated method. Change-Id: Iba6dacc3e48e47dd0bc5467587c8476cb395267f