diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-29 14:43:31 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-29 14:43:49 +0100 |
| commit | 3db12f728ec2d48640574133675bb01ca926d741 (patch) | |
| tree | ac08c02ad3e9ea834f221f3ebf6abd2bc5cd3448 /kconfiglib.py | |
| parent | d43d2e83a9dc96d86dfbc946516bc3090303dbd3 (diff) | |
Warn if a choice symbol has defaults
Never has en affect.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 39ff23c..3f1710c 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -4313,6 +4313,11 @@ def _check_choice_sanity(choice): _name_and_loc_str(choice))) for sym in choice.syms: + if sym.defaults: + choice.kconfig._warn("default on the choice symbol {} will have " + "no effect" + .format(_name_and_loc_str(sym))) + for node in sym.nodes: if node.prompt: break |
