This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[PATCH,FORTRAN] Variable "value" possibly unused in io/read.c
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>
- Date: Sat, 4 May 2013 17:06:56 -0400
- Subject: [PATCH,FORTRAN] Variable "value" possibly unused in io/read.c
All uses of "value" are protected by
#if defined HAVE_GFC_REAL_16 || defined HAVE_GFC_REAL_10
so it may be unused, which generates a warning on some platforms.
Bootstrapped on powerpc-ibm-aix7.1.0.0.
Okay for trunk?
Thanks, David
* io/read.c (si_max): Annotate value with attribute unused.
Index: io/read.c
===================================================================
--- io/read.c (revision 198587)
+++ io/read.c (working copy)
@@ -91,7 +91,7 @@
GFC_UINTEGER_LARGEST
si_max (int length)
{
- GFC_UINTEGER_LARGEST value;
+ GFC_UINTEGER_LARGEST value __attribute__((unused));
switch (length)
{