From d43d2e83a9dc96d86dfbc946516bc3090303dbd3 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 29 Jan 2018 13:58:38 +0100 Subject: Warn if menuconfig statement has no prompt Mirrors a warning in the C implementation. --- kconfiglib.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index 7b91b6e..39ff23c 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1554,6 +1554,10 @@ class Kconfig(object): self._parse_properties(node, visible_if_deps) + if node.is_menuconfig and not node.prompt: + self._warn("the menuconfig symbol {} has no prompt" + .format(_name_and_loc_str(node.item))) + # Tricky Python semantics: This assign prev_node.next before # prev_node prev_node.next = prev_node = node -- cgit v1.2.3