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]

Re: [libgfortran,committed] Silence a few warnings on mingw32


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) ?



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