From 17ee31b51081b8281b652fa06b997918003f7772 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 8 Jul 2009 01:04:31 +0000 Subject: asymptote 1.80 git-svn-id: svn://tug.org/texlive/trunk@14179 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/utils/asymptote/stm.cc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Build/source/utils/asymptote/stm.cc') diff --git a/Build/source/utils/asymptote/stm.cc b/Build/source/utils/asymptote/stm.cc index 5b09387d431..d55015d7c01 100644 --- a/Build/source/utils/asymptote/stm.cc +++ b/Build/source/utils/asymptote/stm.cc @@ -81,12 +81,16 @@ exp *tryToWriteExp(coenv &e, exp *body) // Issue a warning if the act of writing turns an ambiguous expression // into an unambiguous one. if (t->kind == ty_overloaded) { - em.warning(body->getPos()); - em << "writing overloaded"; - if (body->getName()) - em << " variable '" << *body->getName() << "'"; - else - em << " expression"; + string s=settings::warn("writeoverloaded"); + if(!s.empty()) { + em.warning(body->getPos()); + em << "writing overloaded"; + if (body->getName()) + em << " variable '" << *body->getName() << "'"; + else + em << " expression"; + em.disable(s); + } } return call; } -- cgit v1.2.3