aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/lex.c')
-rw-r--r--c/lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/lex.c b/c/lex.c
index afadffc..548f82c 100644
--- a/c/lex.c
+++ b/c/lex.c
@@ -33,6 +33,7 @@ identkeyword(struct token *tk, const char *s, int len)
};
int l = 0, h = arraylength(kwtab) - 1, i, cmp;
+ tk->extwarn = 0;
if (len > TKWMAXLEN_) goto ident;
/* binary search over sorted array */
while (l <= h) {
@@ -579,8 +580,7 @@ Begin:
}
tmp[n] = 0;
if (!identkeyword(tk, tmp, n) && ccopt.pedant)
- warn(&(struct span) {{ idx, lx->chridx - idx, lx->fileid }},
- "%'tk in %M is an extension", tk);
+ tk->extwarn = 1;
goto End;
}
case 0: if (lx->idx >= lx->ndat) RET(TKEOF);