diff options
Diffstat (limited to 'Build/source/utils/asymptote/stm.cc')
-rw-r--r-- | Build/source/utils/asymptote/stm.cc | 16 |
1 files changed, 10 insertions, 6 deletions
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; } |