public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [libgfortran,committed] Get rid of warning in io/unix.c
@ 2007-07-27 17:03 FX Coudert
  0 siblings, 0 replies; only message in thread
From: FX Coudert @ 2007-07-27 17:03 UTC (permalink / raw)
  To: fortran@gcc.gnu.org List, gcc-patches List

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-27 16:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-27 17:03 [libgfortran,committed] Get rid of warning in io/unix.c FX Coudert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).