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

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
139 while (isspace(*prompt))139 while (isspace(*prompt))
140 prompt++;140 prompt++;
141 }141 }
142 if (current_entry->prompt)142 if (current_entry->prompt && current_entry != &rootmenu)
143 prop_warn(prop, "prompt redefined");143 prop_warn(prop, "prompt redefined");
144 current_entry->prompt = prop;144 current_entry->prompt = prop;
145 }145 }