summaryrefslogtreecommitdiff
path: root/utils/c2l
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-04-27 12:51:13 +0100
committerforsyth <forsyth@vitanuova.com>2010-04-27 12:51:13 +0100
commitd67b7dad77bb8aa973dad1f7c3ab0c309b114278 (patch)
tree6794120fb327d6de19cf05eed53f80d877781a3e /utils/c2l
parent09da2e137d5eb0c940df35d989e4c31ec0654fc4 (diff)
20100427-1251
Diffstat (limited to 'utils/c2l')
-rw-r--r--utils/c2l/com.c2
-rw-r--r--utils/c2l/dcl.c2
-rw-r--r--utils/c2l/lex.c2
-rw-r--r--utils/c2l/sub.c5
4 files changed, 8 insertions, 3 deletions
diff --git a/utils/c2l/com.c b/utils/c2l/com.c
index 283c2ae9..e40bfa2a 100644
--- a/utils/c2l/com.c
+++ b/utils/c2l/com.c
@@ -599,6 +599,7 @@ addaddr:
if(n->type->etype == TARRAY)
n->type = typ1(TIND, n->type->link);
return 0;
+#ifdef WHATEVA
if(tlvalue(n))
goto bad;
l = new1(OXXX, Z, Z);
@@ -611,6 +612,7 @@ addaddr:
n->type = typ1(TIND, l->type);
n->type->width = types[TIND]->width;
return 0;
+#endif
bad:
n->type = T;
diff --git a/utils/c2l/dcl.c b/utils/c2l/dcl.c
index 6fb6977a..1f576467 100644
--- a/utils/c2l/dcl.c
+++ b/utils/c2l/dcl.c
@@ -926,7 +926,7 @@ rsametype(Type *t1, Type *t2, int n, int f)
return 1;
}
}
- return 0;
+ /* not reached */
}
ulong
diff --git a/utils/c2l/lex.c b/utils/c2l/lex.c
index 5701dd99..574ecfc6 100644
--- a/utils/c2l/lex.c
+++ b/utils/c2l/lex.c
@@ -951,7 +951,7 @@ getnsc(void)
}
c = GETC();
}
- return 0;
+ /* not reached */
}
void
diff --git a/utils/c2l/sub.c b/utils/c2l/sub.c
index a696cb0f..4c0f2cdb 100644
--- a/utils/c2l/sub.c
+++ b/utils/c2l/sub.c
@@ -263,10 +263,12 @@ simplet(long b)
int
stcompat(Node *n, Type *t1, Type *t2, long ttab[])
{
+ USED(n); USED(t1); USED(t2); USED(ttab[0]);
+ return 0;
+#ifdef WHATEVA
int i;
ulong b;
- return 0;
i = 0;
if(t2 != T)
i = t2->etype;
@@ -286,6 +288,7 @@ stcompat(Node *n, Type *t1, Type *t2, long ttab[])
return 0;
}
return 1;
+#endif
}
int