commit - e4e259d8732eb42b6c899c6a06e990f866d9152b
commit + 25724ab6eacd8fbd40a60cad41920e8d56af27a6
blob - 2f0d48e892f5b82bdd063b39c87703ce616ab898
blob + 19767779cbb2857cdf246fc2af19b48b224b477d
--- gen.c
+++ gen.c
return size_of_struct (ty->st);
case T_UNION:
return size_of_union (ty->un);
+ default:
+ abort ();
}
}
return align_of_struct (ty->st);
case T_UNION:
return align_of_union (ty->un);
+ default:
+ abort ();
}
}
for (struct item **i = st->items; *i != NULL; ++i) {
struct item *it = *i;
- size_t sz = size_of (it->type);
char *into;
asprintf (&into, "out->%s", it->name);
{
char *s;
- s = strrchr (s, '/');
+ s = strrchr (path, '/');
if (s != NULL) {
++s;
} else {