changeset 17126:f8d7263cce09

(init_syntax_once): Add trick to avoid compiler warning of "comparison is always 1 ...".
author Kenichi Handa <handa@m17n.org>
date Fri, 28 Feb 1997 01:38:57 +0000
parents 4a6c43010388
children ab43d13fdfd5
files src/syntax.c
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 ()