This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch installed for -Werror failure in dbxout.c


I installed the following patch to fix a -Werror bootstrap failure on
mips-sgi-irix6.5:

 > dbxout.c:206: warning: 'current_file' defined but not used
 > make[2]: *** [dbxout.o] Error 1



Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.1702
diff -u -p -r2.1702 ChangeLog
--- ChangeLog	8 Nov 2003 02:20:59 -0000	2.1702
+++ ChangeLog	8 Nov 2003 15:08:31 -0000
@@ -1,3 +1,7 @@
+2003-11-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
+
 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
 
 	* config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
Index: dbxout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dbxout.c,v
retrieving revision 1.165
diff -u -p -r1.165 dbxout.c
--- dbxout.c	7 Nov 2003 22:12:39 -0000	1.165
+++ dbxout.c	8 Nov 2003 15:08:31 -0000
@@ -203,7 +203,9 @@ struct dbx_file
    should always be 0 because we should not have needed any file numbers
    yet.  */
 
+#ifdef DBX_USE_BINCL
 static struct dbx_file *current_file;
+#endif
 
 /* This is the next file number to use.  */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]