···561561 if (sym->type == S_UNKNOWN)562562 menu_warn(parent, "config symbol defined without type");563563564564- if (sym_is_choice(sym) && !parent->prompt)565565- menu_warn(parent, "choice must have a prompt");566566-567564 /* Check properties connected to this symbol */568565 sym_check_prop(sym);569566 sym->flags |= SYMBOL_WARNED;
+6
scripts/kconfig/parser.y
···233233234234choice_entry: choice choice_option_list235235{236236+ if (!current_entry->prompt) {237237+ fprintf(stderr, "%s:%d: error: choice must have a prompt\n",238238+ current_entry->filename, current_entry->lineno);239239+ yynerrs++;240240+ }241241+236242 $$ = menu_add_menu();237243};238244