diff options
author | Kenichi Handa <handa@m17n.org> | 1997-02-28 01:38:57 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1997-02-28 01:38:57 +0000 |
commit | 78f9a1f70378f28233b721066bd4f31220f25af6 (patch) | |
tree | f7f97ec3a65b22b0bdf1e9eac4388b7dd8dca445 /src/syntax.c | |
parent | 7075e5a56ae6a07a4eea4f8ca8e2d25abdab1fba (diff) | |
download | emacs-78f9a1f70378f28233b721066bd4f31220f25af6.tar.gz |
(init_syntax_once): Add trick to avoid compiler warning
of "comparison is always 1 ...".
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 12 |
1 files 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 () |