aboutsummaryrefslogtreecommitdiffhomepage
path: root/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lex.c b/lex.c
index b48c8f8..86df308 100644
--- a/lex.c
+++ b/lex.c
@@ -496,7 +496,7 @@ Begin:
tmp[n++] = next(lx);
}
tmp[n] = 0;
- if (!identkeyword(tk, tmp, n))
+ if (!identkeyword(tk, tmp, n) && ccopt.pedant)
warn(&(struct span) {{ idx, lx->chridx - idx, lx->fileid }},
"%'tk in %M is an extension", tk);
goto End;