comerr-cleanup-warnings-20010605
authorNathan Neulinger <nneul@umr.edu>
Tue, 5 Jun 2001 19:22:01 +0000 (19:22 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 5 Jun 2001 19:22:01 +0000 (19:22 +0000)
compiler placation

src/comerr/error_table.y
src/comerr/et_lex.lex.l

index 77d1aa0..7ade428 100644 (file)
@@ -146,7 +146,7 @@ char *gensym(const char *x)
        }
        symbol = (char *)malloc(32 * sizeof(char));
        gensym_n++;
-       sprintf(symbol, "et%ld", gensym_n);
+       sprintf(symbol, "et%ld", (long int) gensym_n);
        return(symbol);
 }
 
@@ -236,7 +236,7 @@ void put_ecs(void)
        for (i = 0; i < current; i++) {
             if (error_codes[i] != (char *)NULL)
                  fprintf(hfile, "#define %-40s (%ldL)\n",
-                         error_codes[i], table_number + i);
+                         error_codes[i], (long int) table_number + i);
        }
 }
 
index 7671731..7db068b 100644 (file)
@@ -11,7 +11,7 @@ end           return END;
 [\t\n\r ]              ;
 
 \"{PC}*\"      { register char *p; yylval.dynstr = ds((char *)yytext+1);
-                 if (p=strrchr(yylval.dynstr, '"')) *p='\0';
+                 if ((p=strrchr(yylval.dynstr, '"'))) *p='\0';
                  return QUOTED_STRING;
                }