This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [libgfortran,committed] Silence a few warnings on mingw32
- From: Bernhard Fischer <rep dot dot dot nop at gmail dot com>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>, gcc-patches list <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 2 Dec 2007 11:08:32 +0100
- Subject: Re: [libgfortran,committed] Silence a few warnings on mingw32
- References: <70685A52-CDF7-43D0-BB14-550D124496C0@gmail.com>
On Sat, Dec 01, 2007 at 09:16:57PM +0000, FX Coudert wrote:
> Committed patch as rev. 130561 to fix a couple of warnings when building
> libgfortran on x86_64-pc-mingw32.
+ * intrinsic/stat.c (stat_i4_sub_0, stat_i8_sub_0): Mark parameter
+ with unused attribute.
[]
+++ intrinsics/stat.c (working copy)
@@ -60,7 +60,7 @@ internal_proto(stat_i4_sub_0);*/
static void
stat_i4_sub_0 (char *name, gfc_array_i4 *sarray, GFC_INTEGER_4 *status,
- gfc_charlen_type name_len, int is_lstat)
+ gfc_charlen_type name_len, int is_lstat __attribute__ ((unused)))
Same for any __attribute__[[:space:]]*\(\([_]*unused[_]*\)\) in the
tree..
Shouldn't these rather use the ATTRIBUTE_UNUSED (as per ansidecl.h) ?