[libgfortran,committed] Get rid of warning in io/unix.c

FX Coudert fxcoudert@gmail.com
Fri Jul 27 16:42:00 GMT 2007


On platforms missing ttyname(), the argument to stream_ttyname() is  
unused, leading to a warning. I've thus committed the following patch  
as rev. 126983, after checking that it doesn't break build on i686- 
linux.

FX





Index: ChangeLog
===================================================================
--- ChangeLog   (revision 126982)
+++ ChangeLog   (working copy)
@@ -1,5 +1,9 @@
2007-07-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+       * io/unix.c (stream_ttyname): Mark argument as potentialy  
unused.
+
+2007-07-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
         PR fortran/32035
         * runtime/select.c (select_string): Adjust prototype and  
function
         so that the return value is an integer, not a pointer.
Index: io/unix.c
===================================================================
--- io/unix.c   (revision 126982)
+++ io/unix.c   (working copy)
@@ -1945,7 +1945,7 @@ stream_isatty (stream *s)
}
char *
-stream_ttyname (stream *s)
+stream_ttyname (stream *s __attribute__ ((unused)))
{
#ifdef HAVE_TTYNAME
    return ttyname (((unix_stream *) s)->fd);



More information about the Fortran mailing list