This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

ATTRIBUTE_UNUSED on used arguments...


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;


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