aboutsummaryrefslogtreecommitdiff
path: root/gas/codeview.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-12-12 09:49:44 +0100
committerJan Beulich <jbeulich@suse.com>2022-12-12 09:49:44 +0100
commitaf327b04a5560163713222ebcc94f587441be127 (patch)
tree3385fce3cc6152d0e081392e1d76f4234d55cc38 /gas/codeview.c
parent65f440c8fb5fc1af9f5aaee181ac7e631573a7e1 (diff)
downloadfsf-binutils-gdb-af327b04a5560163713222ebcc94f587441be127.zip
fsf-binutils-gdb-af327b04a5560163713222ebcc94f587441be127.tar.gz
fsf-binutils-gdb-af327b04a5560163713222ebcc94f587441be127.tar.bz2
gas/codeview: avoid "shadowing" of glibc function name
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.
Diffstat (limited to 'gas/codeview.c')
-rw-r--r--gas/codeview.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/codeview.c b/gas/codeview.c
index 13f1a3a..1576402 100644
--- a/gas/codeview.c
+++ b/gas/codeview.c
@@ -452,7 +452,7 @@ void
codeview_generate_asm_lineno (void)
{
const char *file;
- unsigned int fileno;
+ unsigned int filenr;
unsigned int lineno;
struct line *l;
symbolS *sym = NULL;
@@ -461,7 +461,7 @@ codeview_generate_asm_lineno (void)
file = as_where (&lineno);
- fileno = get_fileno (file);
+ filenr = get_fileno (file);
if (!blocks_tail || blocks_tail->frag != frag_now)
{
@@ -492,11 +492,11 @@ codeview_generate_asm_lineno (void)
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;