This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

[gfortran] Fix warning.


Patch below shuts up a compiler warning with --disable-mapped-location.

Tested on i686-linux.
Applied to mainline.

Paul

2004-09-09  Paul Brook  <paul@codesourcery.com>

 * scanner.c (get_file): Add ATTRIBUTE_UNUSED.

Index: scanner.c
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/fortran/scanner.c,v
retrieving revision 1.8
diff -u -r1.8 scanner.c
--- scanner.c 7 Sep 2004 14:43:37 -0000 1.8
+++ scanner.c 8 Sep 2004 14:38:25 -0000
@@ -801,7 +801,7 @@
    the file stack.  */
 
 static gfc_file *
-get_file (char *name, enum lc_reason reason)
+get_file (char *name, enum lc_reason reason ATTRIBUTE_UNUSED)
 {
   gfc_file *f;
 


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