~mcf/cproc

ec6ec4b1d04092e7175b658d5ea884e3f3b82c81 — Michael Forney a month ago 38b1d57
Help gcc see that variables are not used uninitialized
3 files changed, 5 insertions(+), 2 deletions(-)

M init.c
M pp.c
M token.c
M init.c => init.c +2 -0
@@ 163,6 163,8 @@ focus(struct initparser *p)
		p->sub->mem = p->sub->type->structunion.members;
		t = p->sub->mem->type;
		break;
	default:
		fatal("internal error: init cursor has unexpected type");
	}
	subobj(p, t, 0);
}

M pp.c => pp.c +2 -1
@@ 220,8 220,9 @@ define(void)
	if (t->kind == TLPAREN && !t->space) {
		m->kind = MACROFUNC;
		/* read macro parameter names */
		p = NULL;
		while (scan(&tok), tok.kind != TRPAREN) {
			if (params.len) {
			if (p) {
				if (p->flags & PARAMVAR)
					tokencheck(&tok, TRPAREN, "after '...'");
				tokencheck(&tok, TCOMMA, "or ')' after macro parameter");

M token.c => token.c +1 -1
@@ 143,7 143,7 @@ static void
tokendesc(char *buf, size_t len, enum tokenkind kind, const char *lit)
{
	const char *class;
	bool quote;
	bool quote = true;

	switch (kind) {
	case TEOF:       class = "EOF";                       break;