History

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.

Arnaud Lacombe committed 16 years ago

Commit ba6ff601 parent 09548281 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/menu.c+1−1
@@ -139,7 +139,7 @@ struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *e · 138 unmodified lines
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 }