public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/32532]  New: Warning: variable ret never used
@ 2007-06-28  2:04 nightstrike at gmail dot com
  2007-06-28  2:09 ` [Bug other/32532] Warning: variable ret never used in writeargv dj at redhat dot com
  2007-07-02 17:54 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: nightstrike at gmail dot com @ 2007-06-28  2:04 UTC (permalink / raw)
  To: gcc-bugs

In libiberty/argv.c line 313, function writeargv(), the line "int ret" declares
a variable that is never used in that function.  This triggers a warning during
compilation.  The following patch should remove that line:

Index: libiberty/argv.c
===================================================================
--- libiberty/argv.c    (revision 126005)
+++ libiberty/argv.c    (working copy)
@@ -310,7 +310,6 @@ writeargv (char **argv, FILE *f)

  while (*argv != NULL)
    {
-      int ret;
      const char *arg = *argv;

      while (*arg != EOS)


-- 
           Summary: Warning: variable ret never used
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nightstrike at gmail dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-pc-mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32532


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug other/32532] Warning: variable ret never used in writeargv
  2007-06-28  2:04 [Bug c/32532] New: Warning: variable ret never used nightstrike at gmail dot com
@ 2007-06-28  2:09 ` dj at redhat dot com
  2007-07-02 17:54 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: dj at redhat dot com @ 2007-06-28  2:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dj at redhat dot com  2007-06-28 02:09 -------
Ok to commit it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32532


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug other/32532] Warning: variable ret never used in writeargv
  2007-06-28  2:04 [Bug c/32532] New: Warning: variable ret never used nightstrike at gmail dot com
  2007-06-28  2:09 ` [Bug other/32532] Warning: variable ret never used in writeargv dj at redhat dot com
@ 2007-07-02 17:54 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-02 17:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-07-02 17:54 -------
Fixed by:
2007-07-02  Simon Baldwin <simonb@google.com>

        * argv.c (writeargv): Removed declaration of unused variable.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32532


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-02 17:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-28  2:04 [Bug c/32532] New: Warning: variable ret never used nightstrike at gmail dot com
2007-06-28  2:09 ` [Bug other/32532] Warning: variable ret never used in writeargv dj at redhat dot com
2007-07-02 17:54 ` pinskia at gcc dot gnu dot org

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