Only change compilation status if warnings_as_errors
There is no need for =~ to be a macro