This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[gfortran] Fix warning.
- From: Paul Brook <paul at codesourcery dot com>
- To: fortran at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 9 Sep 2004 00:31:26 +0100
- Subject: [gfortran] Fix warning.
- Organization: CodeSourcery
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;