While not "index" this time, old enough glibc also has an (unguarded)
declaration of fileno() in stdio.h, which triggers a "shadows a global
declaration" warning with our choice of warning level and with at least
some gcc versions.
codeview_generate_asm_lineno (void)
{
const char *file;
- unsigned int fileno;
+ unsigned int filenr;
unsigned int lineno;
struct line *l;
symbolS *sym = NULL;
file = as_where (&lineno);
- fileno = get_fileno (file);
+ filenr = get_fileno (file);
if (!blocks_tail || blocks_tail->frag != frag_now)
{
lb = blocks_tail;
}
- if (!lb->files_tail || lb->files_tail->fileno != fileno)
+ if (!lb->files_tail || lb->files_tail->fileno != filenr)
{
lf = xmalloc (sizeof (struct line_file));
lf->next = NULL;
- lf->fileno = fileno;
+ lf->fileno = filenr;
lf->lines_head = lf->lines_tail = NULL;
lf->num_lines = 0;