Question on unused varilables

FX fxcoudert@gmail.com
Thu Apr 24 21:39:00 GMT 2008


>  ../../../build/gcc-svn/gcc/libgfortran/intrinsics/time_1.h: In
>  function '__time_1':
>  ../../../build/gcc-svn/gcc/libgfortran/intrinsics/time_1.h:90:
>  warning: unused variable 'total_time'
>
>  Can these be removed?

Hum, I thought I did that last time I committed a patch to time_1.h.
Well, now it's done:

2008-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

        * intrinsics/time_1.h (__time_1): Remove unused variable.


Index: intrinsics/time_1.h
===================================================================
--- intrinsics/time_1.h (revision 134629)
+++ intrinsics/time_1.h (working copy)
@@ -87,7 +87,6 @@ __time_1 (long *user_sec, long *user_use
   } kernel_time,  user_time;

   FILETIME unused1, unused2;
-  unsigned long long total_time;

   /* No support for Win9x.  The high order bit of the DWORD
      returned by GetVersion is 0 for NT and higher. */


-- 
FX Coudert
http://www.homepages.ucl.ac.uk/~uccafco/



More information about the Fortran mailing list