aboutsummaryrefslogtreecommitdiffhomepage
path: root/lex.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-26 09:30:43 +0200
committerlemon <lsof@mailbox.org>2023-06-26 09:30:43 +0200
commitd21f02db540bc3b81c18fd4ee3336e908afeb6fd (patch)
tree8eb1bb2584fcbf6181dd17b5032896a961d3209f /lex.c
parentd05fd6531924312bd69dda49778fc0920626a37b (diff)
frontend: add static assert
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;