Skip to content

Commit

Permalink
kconfig: don't silently ignore unhandled characters
Browse files Browse the repository at this point in the history
At the very least we should tell people that what they wrote is not
what the utility understands.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Michal Marek <mmarek@suse.cz>
  • Loading branch information
Jan Beulich authored and Michal Marek committed Jun 11, 2015
1 parent fa75a72 commit 2e0d737
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 89 deletions.
7 changes: 6 additions & 1 deletion scripts/kconfig/zconf.l
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
<<EOF>> {
BEGIN(INITIAL);
}
Expand Down
Loading

0 comments on commit 2e0d737

Please sign in to comment.