Skip to content

Commit ba6ff60

Browse files
committed
kconfig: don't emit warning upon rootmenu's prompt redefinition
This silences the warning printed upon prompt redefinition for the rootmenu. We will encounter this redefinition when a "mainmenu" statement is specified and override the default prompt. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Michal Marek <mmarek@suse.cz>
1 parent 0954828 commit ba6ff60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/kconfig/menu.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *e
139139
while (isspace(*prompt))
140140
prompt++;
141141
}
142-
if (current_entry->prompt)
142+
if (current_entry->prompt && current_entry != &rootmenu)
143143
prop_warn(prop, "prompt redefined");
144144
current_entry->prompt = prop;
145145
}

0 commit comments

Comments
 (0)