Treat #warning like #warn

This commit is contained in:
Tad Hardesty 2017-11-10 18:38:51 -08:00
parent be6ed3c64f
commit c5c85ddb96

View file

@ -419,7 +419,7 @@ impl Preprocessor {
expect_token!(() = Token::Punct(Punctuation::Newline));
self.defines.remove(&define_name); // TODO: warn if none
}
"warn" | "error" => {
"warning" | "warn" | "error" => {
// TODO: report warnings as warnings rather than errors
expect_token!((text) = Token::String(text));
return Err(DMError::new(self.last_input_loc, format!("#{} {}", ident, text)));