Change some warnings to errors