Fix build warnings and make build warnings be errors

Test: screenrecord builds without warnings, both now and in future
Change-Id: Id8098c2be445715e0b4dd35e2b7aed0c7757d1fe
3 files changed