From dc6c6455c297840eb8c6a68a7c0d8755c6c33501 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 4 Apr 2011 02:08:31 -0700 Subject: [PATCH] * intervals.c (graft_intervals_into_buffer): Mark var as used. --- src/ChangeLog | 2 ++ src/intervals.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 0716233d612..b72f17ab7b9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-04-04 Paul Eggert + * intervals.c (graft_intervals_into_buffer): Mark var as used. + * process.c (list_processes_1, create_pty, read_process_output): (exec_sentinel): Remove vars that were set but not used. (create_pty): Remove unnecessary "volatile"s. diff --git a/src/intervals.c b/src/intervals.c index 351677ad27e..92c84554510 100644 --- a/src/intervals.c +++ b/src/intervals.c @@ -1677,7 +1677,7 @@ graft_intervals_into_buffer (INTERVAL source, EMACS_INT position, EMACS_INT length, struct buffer *buffer, int inherit) { - register INTERVAL under, over, this, prev; + register INTERVAL under, over, this; register INTERVAL tree; EMACS_INT over_used; @@ -1767,7 +1767,8 @@ graft_intervals_into_buffer (INTERVAL source, EMACS_INT position, /* This call may have some effect because previous_interval may update `position' fields of intervals. Thus, don't ignore it for the moment. Someone please tell me the truth (K.Handa). */ - prev = previous_interval (under); + INTERVAL prev = previous_interval (under); + (void) prev; #if 0 /* But, this code surely has no effect. And, anyway, END_NONSTICKY_P is unreliable now. */ -- 2.39.2