From 78f9a1f70378f28233b721066bd4f31220f25af6 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 28 Feb 1997 01:38:57 +0000 Subject: [PATCH] (init_syntax_once): Add trick to avoid compiler warning of "comparison is always 1 ...". --- src/syntax.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/syntax.c b/src/syntax.c index 2ce4f85bc27..ee935e77911 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1851,7 +1851,7 @@ DEFUN ("parse-partial-sexp", Fparse_partial_sexp, Sparse_partial_sexp, 2, 6, 0, init_syntax_once () { - register int i; + register int i, c; Lisp_Object temp; /* This has to be done here, before we call Fmake_char_table. */ @@ -1907,11 +1907,17 @@ init_syntax_once () temp = XVECTOR (Vsyntax_code_object)->contents[(int) Ssymbol]; for (i = 0; i < 10; i++) - SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, "_-+*/&|<>="[i], temp); + { + c = "_-+*/&|<>="[i]; + SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, c, temp); + } temp = XVECTOR (Vsyntax_code_object)->contents[(int) Spunct]; for (i = 0; i < 12; i++) - SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, ".,;:?!#@~^'`"[i], temp); + { + c = ".,;:?!#@~^'`"[i]; + SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, c, temp); + } } syms_of_syntax () -- 2.39.5