mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
scan-code: avoid compiler warnings
* src/scan-code.l (parse_named_ref): Use correct specifiers.
Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit ae09ec8577)
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-06-29 Eric Blake <ebb9@byu.net>
|
||||||
|
|
||||||
|
scan-code: avoid compiler warnings
|
||||||
|
* src/scan-code.l (parse_named_ref): Use correct specifiers.
|
||||||
|
|
||||||
2009-06-29 Akim Demaille <demaille@gostai.com>
|
2009-06-29 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
build: avoid concurrent extraction of calc++.
|
build: avoid concurrent extraction of calc++.
|
||||||
|
|||||||
@@ -534,7 +534,7 @@ parse_named_ref(char *cp, symbol_list *rule, int rule_length,
|
|||||||
if (variant->ind == 0)
|
if (variant->ind == 0)
|
||||||
strcpy(at_buf, "$$");
|
strcpy(at_buf, "$$");
|
||||||
else
|
else
|
||||||
snprintf(at_buf, sizeof(at_buf), "$%d", variant->ind);
|
snprintf(at_buf, sizeof(at_buf), "$%ld", variant->ind);
|
||||||
|
|
||||||
if (variant->err == 0)
|
if (variant->err == 0)
|
||||||
complain_at (variant->loc, _(" refers to: %c%s at %s"),
|
complain_at (variant->loc, _(" refers to: %c%s at %s"),
|
||||||
@@ -588,7 +588,7 @@ parse_named_ref(char *cp, symbol_list *rule, int rule_length,
|
|||||||
"mid-rule action at $%d", midrule_rhs_index);
|
"mid-rule action at $%d", midrule_rhs_index);
|
||||||
|
|
||||||
obstack_1grow (&msg_buf, '\0');
|
obstack_1grow (&msg_buf, '\0');
|
||||||
complain_at (loc, _("%s"), obstack_finish (&msg_buf));
|
complain_at (loc, _("%s"), (char *) obstack_finish (&msg_buf));
|
||||||
obstack_free (&msg_buf, 0);
|
obstack_free (&msg_buf, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user