use get_boolean_option for warnerrors

This way even warnerrors = 0 is handled properly.

Change-Id: I83d2eb105d07fd65ebc720c63038fc3c542b7f90
Merge "use get_boolean_option for warnerrors"