This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
gas/dwarf2dbg.c warning fix
- To: binutils at sourceware dot cygnus dot com
- Subject: gas/dwarf2dbg.c warning fix
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Fri, 30 Mar 2001 12:37:18 +1000 (EST)
Oops, this went in by mistake with my last commit.
* dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
Alan Modra
--
Linuxcare
Index: gas/dwarf2dbg.c
===================================================================
RCS file: /cvs/src/src/gas/dwarf2dbg.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -p -r1.35 -r1.36
--- dwarf2dbg.c 2001/03/17 18:23:41 1.35
+++ dwarf2dbg.c 2001/03/30 02:19:36 1.36
@@ -324,7 +324,7 @@ dwarf2_directive_file (dummy)
int dummy ATTRIBUTE_UNUSED;
{
offsetT num;
- const char *filename;
+ char *filename;
int filename_len;
/* Continue to accept a bare string and pass it off. */
@@ -347,7 +347,7 @@ dwarf2_directive_file (dummy)
if (num < files_in_use && files[num].filename != 0)
{
- as_bad (_("File number %d already allocated"), num);
+ as_bad (_("File number %ld already allocated"), (long) num);
return;
}