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

[Committed] Libiberty argv.c, remove unused variable declaration.


Committed as revision 126217, after review off-list by Ian Lance Taylor.

Small fix for a truly nitpicky warning seen when compiling libiberty with icc.

gcc/libiberty/ChangeLog
2007-06-29  Simon Baldwin <simonb@google.com>

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


diff -Nrcp3 gcc_orig/libiberty/argv.c gcc/libiberty/argv.c
*** gcc_orig/libiberty/argv.c	Mon Jun 18 15:36:33 2007
--- gcc/libiberty/argv.c	Fri Jun 29 14:48:30 2007
*************** writeargv (char **argv, FILE *f)
*** 310,316 ****
  
    while (*argv != NULL)
      {
-       int ret;
        const char *arg = *argv;
  
        while (*arg != EOS)
--- 310,315 ----

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