c++: fix warning message for automove

* src/scan-code.l: Remove 'enabled'.
Use only $k (numeric), even for named references, for clarity.
* tests/c++.at: Adjust expectations.
This commit is contained in:
Akim Demaille
2018-09-24 08:49:00 +02:00
parent 2eaa7ed946
commit cf4e3eecef
2 changed files with 5 additions and 5 deletions

View File

@@ -681,8 +681,8 @@ handle_action_dollar (symbol_list *rule, char *text, location dollar_loc)
if (muscle_percent_define_ifdef ("api.value.automove")
&& sym->action_props.is_value_used)
complain (&dollar_loc, Wother,
_("multiple occurrences of $%s with api.value.automove enabled"),
cp);
_("multiple occurrences of $%d with api.value.automove"),
n);
sym->action_props.is_value_used = true;
}
break;