From dbec97c4476afb504e5d60bf835aee4ab85054d2 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Fri, 7 Oct 2016 14:40:10 +0200 Subject: [PATCH] preprocessor: fix warning in parsing --- preprocessor/ParsingDriver.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/preprocessor/ParsingDriver.cc b/preprocessor/ParsingDriver.cc index 42ac5cdf20..ec6bf11817 100644 --- a/preprocessor/ParsingDriver.cc +++ b/preprocessor/ParsingDriver.cc @@ -473,8 +473,7 @@ ParsingDriver::init_val(string *name, expr_t rhs) if (nostrict) if (!mod_file->symbol_table.exists(*name)) { - warnings << "WARNING: discarding '" << *name - << "' not recognized in initval or endval statement" << endl; + warning("discarding '" + *name + "' as it was not recognized in the initval or endval statement"); delete name; return; } -- GitLab