summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog2
-rw-r--r--src/syntax.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a83f79ef2de..d22ec42a978 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
2011-04-04 Paul Eggert <eggert@cs.ucla.edu>
+ * syntax.c (scan_words): Remove var that was set but not used.
+
* lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs.
(lisp_file_lexically_bound_p, read1): Use unsigned instead of int.
(safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.
diff --git a/src/syntax.c b/src/syntax.c
index 0a1525b54ea..892cec65697 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1219,7 +1219,7 @@ scan_words (register EMACS_INT from, register EMACS_INT count)
register EMACS_INT from_byte = CHAR_TO_BYTE (from);
register enum syntaxcode code;
int ch0, ch1;
- Lisp_Object func, script, pos;
+ Lisp_Object func, pos;
immediate_quit = 1;
QUIT;
@@ -1259,7 +1259,6 @@ scan_words (register EMACS_INT from, register EMACS_INT count)
}
else
{
- script = CHAR_TABLE_REF (Vchar_script_table, ch0);
while (1)
{
if (from == end) break;
@@ -1310,7 +1309,6 @@ scan_words (register EMACS_INT from, register EMACS_INT count)
}
else
{
- script = CHAR_TABLE_REF (Vchar_script_table, ch1);
while (1)
{
if (from == beg)