From: Paul Eggert Date: Fri, 1 Apr 2011 07:13:23 +0000 (-0700) Subject: * print.c (print_object): Remove var that is set but not used. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~394^2~75 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=47553fa8f12b3dfaeed639763fa112393076c341;p=emacs.git * print.c (print_object): Remove var that is set but not used. --- diff --git a/src/ChangeLog b/src/ChangeLog index b141577e4e7..4a6ac368efb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-04-01 Paul Eggert + * print.c (print_object): Remove var that is set but not used. + Replace two copies of readlink code with single gnulib version. The gnulib version avoids calling malloc in the usual case, and on 64-bit hosts doesn't have some arbitrary 32-bit limits. diff --git a/src/print.c b/src/print.c index e44d4d14f36..dd3d1c9bbb2 100644 --- a/src/print.c +++ b/src/print.c @@ -1460,7 +1460,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag print_string (obj, printcharfun); else { - register EMACS_INT i, i_byte; + register EMACS_INT i_byte; struct gcpro gcpro1; unsigned char *str; EMACS_INT size_byte; @@ -1484,7 +1484,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag str = SDATA (obj); size_byte = SBYTES (obj); - for (i = 0, i_byte = 0; i_byte < size_byte;) + for (i_byte = 0; i_byte < size_byte;) { /* Here, we must convert each multi-byte form to the corresponding character code before handing it to PRINTCHAR. */