We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c33a431 commit 4957515Copy full SHA for 4957515
2 files changed
scripts/kconfig/menu.c
@@ -561,9 +561,6 @@ void menu_finalize(struct menu *parent)
561
if (sym->type == S_UNKNOWN)
562
menu_warn(parent, "config symbol defined without type");
563
564
- if (sym_is_choice(sym) && !parent->prompt)
565
- menu_warn(parent, "choice must have a prompt");
566
-
567
/* Check properties connected to this symbol */
568
sym_check_prop(sym);
569
sym->flags |= SYMBOL_WARNED;
scripts/kconfig/parser.y
@@ -233,6 +233,12 @@ choice: T_CHOICE T_EOL
233
234
choice_entry: choice choice_option_list
235
{
236
+ if (!current_entry->prompt) {
237
+ fprintf(stderr, "%s:%d: error: choice must have a prompt\n",
238
+ current_entry->filename, current_entry->lineno);
239
+ yynerrs++;
240
+ }
241
+
242
$$ = menu_add_menu();
243
};
244
0 commit comments