To be more consistent with other print_warning() calls in the file,
this warning was changed to use its second overloaded form, in which
the token is given as the second argument. This has for effect to allow
proper pretty printing of the token using print_token(), thus making
sure that the path is not repeated and that output is coloured if
necessary.
else
*/
if (e->left->tok->location.file->name == session.user_file->name) // !tapset
- session.print_warning(_F("Eliding assignment to %s at %s", leftvar->name.c_str(), lex_cast(*e->tok).c_str()));
+ session.print_warning(_F("Eliding assignment to '%s'", leftvar->name.c_str()), e->tok);
provide (e->right); // goodbye assignment*
relaxed_p = false;
return;