From: Jan Beulich Date: Tue, 20 Jan 2015 12:52:48 +0000 (+0000) Subject: kconfig: don't silently ignore unhandled characters X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b5b81a87c764e579256cb533ed5ace8315e9ceff;p=carl9170fw.git 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 --- 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); }