Print this page
6648 illumos build should be explicit about C standards

@@ -435,11 +435,10 @@
 static void
 compile_mono(char **tokens, int cnt)
 {
         char *parm, *def;
         int n, num;
-        char tmp[128];
 
         CHECK_COUNT(tokens, cnt, 3, 3);
 
         parm = tokens[1];
         def = tokens[2];

@@ -603,20 +602,19 @@
 }
 
 static void
 compile_asm(char **tokens, int cnt)
 {
-        char *parms[4];
         sym_t *symbols[4];
 #define EMIT(o, r, a, x, y) \
         fle.code[pc*2] =  ((x) << 10) | (y);                    \
         fle.code[pc*2+1] = ((o) << 20) | ((r) << 10) | a; pc++
 #define EMIT_AUDIGY(o, r, a, x, y) \
         fle.code[pc*2] =  ((x) << 12) | (y);                    \
         fle.code[pc*2+1] = ((o) << 24) | ((r) << 12) | a; pc++
 
-        int i, n = 0, nerr = 0;
+        int i, nerr = 0;
         int ninputs = 0;
 
         CHECK_COUNT(tokens, cnt, 5, 5);
 
         for (i = 0; i < 4; i++) {

@@ -811,11 +809,10 @@
 }
 
 static void
 produce_map(char *name)
 {
-        char fname[1024];
         int i;
         FILE *f;
 
         if ((f = fopen(name, "w")) == NULL) {
                 perror(name);

@@ -955,12 +952,11 @@
 }
 
 int
 main(int argc, char *argv[])
 {
-        char line[4096], *p, *s, *outfile;
-        char *iline;
+        char *outfile;
         int i;
         FILE *input;
         char *tokens[10];
         int tokcnt;
         char *mapfile = NULL;