From 47553fa8f12b3dfaeed639763fa112393076c341 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 1 Apr 2011 00:13:23 -0700 Subject: [PATCH] * print.c (print_object): Remove var that is set but not used. --- src/ChangeLog | 2 ++ src/print.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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. */ -- 2.39.2