ATTRIBUTE_UNUSED on used arguments...

François-Xavier Coudert fxcoudert@gmail.com
Mon Jul 3 13:17:00 GMT 2006


While reading through iresolve.c, I noticed two uses of
ATTRIBUTE_UNUSED on a argument that seems to be used. As I don't want
to do anything stupid and I might be missing an obvious point here,
I'm asking for someone to give it a quick look: they are in functions
gfc_resolve_cpu_time and gfc_resolve_random_number.

I plan to commit the following patch after someone can confirm that it
isn't completely stupid:

Index: iresolve.c
===================================================================
--- iresolve.c  (revision 114972)
+++ iresolve.c  (working copy)
@@ -2219,7 +2219,7 @@
 }

 void
-gfc_resolve_cpu_time (gfc_code * c ATTRIBUTE_UNUSED)
+gfc_resolve_cpu_time (gfc_code * c)
 {
   const char *name;

@@ -2243,7 +2243,7 @@


 void
-gfc_resolve_random_number (gfc_code * c ATTRIBUTE_UNUSED)
+gfc_resolve_random_number (gfc_code * c)
 {
   const char *name;
   int kind;



More information about the Fortran mailing list