aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>1997-02-28 01:38:57 +0000
committerKenichi Handa <[email protected]>1997-02-28 01:38:57 +0000
commit78f9a1f70378f28233b721066bd4f31220f25af6 (patch)
treef7f97ec3a65b22b0bdf1e9eac4388b7dd8dca445 /src/syntax.c
parent7075e5a56ae6a07a4eea4f8ca8e2d25abdab1fba (diff)
(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.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 2ce4f85bc2..ee935e7791 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 ()