Re: [PATCH Bug breakpoints/14381] Fix linespec to parse file name that begin with decimal numbers

Tom Tromey
2012-07-24T19:36:05Z

>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:

>> 2012-07-24 Hui Zhu <hui_zhu@mentor.com>
>> * linespec.c (linespec_lexer_lex_number): Update comments,
>> change the return and add check to make sure the input is
>> the decimal numbers.
>> (linespec_lexer_lex_one): If linespec_lexer_lex_number return
>> false, call linespec_lexer_lex_string.

>> +static int
>> +linespec_lexer_lex_number (linespec_parser *parser, linespec_token *tokenp)
>> {
>> linespec_token token;

After this change, I think 'token' is unused.

The patch is ok if you update it to remove this.

thanks,
Tom