Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba6ff60d authored by Arnaud Lacombe's avatar Arnaud Lacombe
Browse files

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: default avatarArnaud Lacombe <lacombar@gmail.com>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarMichal Marek <mmarek@suse.cz>
parent 0954828f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -139,7 +139,7 @@ struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *e
			while (isspace(*prompt))
			while (isspace(*prompt))
				prompt++;
				prompt++;
		}
		}
		if (current_entry->prompt)
		if (current_entry->prompt && current_entry != &rootmenu)
			prop_warn(prop, "prompt redefined");
			prop_warn(prop, "prompt redefined");
		current_entry->prompt = prop;
		current_entry->prompt = prop;
	}
	}