Add support for reporting warnings