summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 4df0e53..2998a07 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2934,6 +2934,10 @@ class Symbol(object):
symbol has a prompt. User values never have an effect on promptless
symbols, so we skip invalidation for them as an optimization.
+ This also prevents constant (quoted) symbols from being invalidated if
+ set_value() is called on them, which would cause them to lose their
+ value and break things.
+
Prints a warning if the symbol has no prompt. In some contexts (e.g.
when loading a .config files) assignments to promptless symbols are
normal and expected, so the warning can be disabled.