summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/errormsg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/errormsg.cc')
-rw-r--r--Build/source/utils/asymptote/errormsg.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/Build/source/utils/asymptote/errormsg.cc b/Build/source/utils/asymptote/errormsg.cc
index b9b45ee0d2d..249e26dfb1a 100644
--- a/Build/source/utils/asymptote/errormsg.cc
+++ b/Build/source/utils/asymptote/errormsg.cc
@@ -63,15 +63,16 @@ void errorstream::error(position pos)
anyErrors = true;
}
-void errorstream::warning(position pos)
+void errorstream::warning(position pos, string s)
{
- message(pos,"warning: ");
+ message(pos,"warning ["+s+"]: ");
anyWarnings = true;
}
-void errorstream::disable(string s)
+void errorstream::warning(position pos)
{
- out << ": to ignore, use nowarn(\""+s+"\");";
+ message(pos,"warning: ");
+ anyWarnings = true;
}
void errorstream::fatal(position pos)