diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-08 08:20:25 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-08 08:21:07 +0100 |
| commit | 2b161c53532bc7d365910c9b1d73894b353f3ff3 (patch) | |
| tree | bacb391c01b16d2aaafe79d923b82b67f13861b7 | |
| parent | 38339c48ec888fed1a9838dff070a79ec00a37c7 (diff) | |
Remove warning for assigning to symbol without prompt.
Annoying when running allnoconfig_simpler.py.
| -rw-r--r-- | kconfiglib.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 0c812f9..b7274d7 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2861,11 +2861,13 @@ class Symbol(Item, _HasVisibility): .format(v, self.name, typename[self.type])) return - if self.prompts == [] and not suppress_load_warnings: - self.config._warn('assigning "{0}" to the symbol {1} which lacks ' - 'prompts and thus has visibility "n". The assignment ' - 'will have no effect.' - .format(v, self.name)) + # This warning is annoying when running allnoconfig_simpler.py. Make it + # optional? + #if self.prompts == [] and not suppress_load_warnings: + #self.config._warn('assigning "{0}" to the symbol {1} which lacks ' + #'prompts and thus has visibility "n". The assignment ' + #'will have no effect.' + #.format(v, self.name)) self.user_val = v |
