mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-01 11:14:55 +00:00
* etags.c (Ada_funcs): Redo slightly to avoid overflow warning.
This commit is contained in:
parent
3ef271f27f
commit
58cb46fbf4
@ -1,5 +1,7 @@
|
||||
2011-03-21 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* etags.c (Ada_funcs): Redo slightly to avoid overflow warning.
|
||||
|
||||
etags: In Prolog functions, don't assume int fits in size_t.
|
||||
This avoids a warning with gcc -Wstrict-overflow.
|
||||
* etags.c (Prolog_functions, prolog_pr, prolog_atom): Use size_t,
|
||||
|
@ -4198,7 +4198,7 @@ Ada_funcs (FILE *inf)
|
||||
/* Skip a string i.e. "abcd". */
|
||||
if (inquote || (*dbp == '"'))
|
||||
{
|
||||
dbp = etags_strchr ((inquote) ? dbp : dbp+1, '"');
|
||||
dbp = etags_strchr (dbp + !inquote, '"');
|
||||
if (dbp != NULL)
|
||||
{
|
||||
inquote = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user