From b5b81a87c764e579256cb533ed5ace8315e9ceff Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 20 Jan 2015 12:52:48 +0000 Subject: [PATCH] kconfig: don't silently ignore unhandled characters At the very least we should tell people that what they wrote is not what the utility understands. Signed-off-by: Jan Beulich Acked-by: Paul Bolle Signed-off-by: Michal Marek Signed-off-by: Christian Lamparter --- config/zconf.l | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/zconf.l b/config/zconf.l index 54058e0..960b1e6 100644 --- a/config/zconf.l +++ b/config/zconf.l @@ -141,7 +141,12 @@ n [A-Za-z0-9_] } #.* /* comment */ \\\n current_file->lineno++; - . + [[:blank:]]+ + . { + fprintf(stderr, + "%s:%d:warning: ignoring unsupported character '%c'\n", + zconf_curname(), zconf_lineno(), *yytext); + } <> { BEGIN(INITIAL); } -- 2.31.1