# HG changeset patch # User Kenichi Handa # Date 857093937 0 # Node ID f8d7263cce093656994cb791b1ee51a7a1dc625b # Parent 4a6c430103885cada690dcf595238500b9f718b0 (init_syntax_once): Add trick to avoid compiler warning of "comparison is always 1 ...". diff -r 4a6c43010388 -r f8d7263cce09 src/syntax.c --- a/src/syntax.c Thu Feb 27 19:08:35 1997 +0000 +++ b/src/syntax.c Fri Feb 28 01:38:57 1997 +0000 @@ -1851,7 +1851,7 @@ 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 @@ 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 ()