From 2b161c53532bc7d365910c9b1d73894b353f3ff3 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 8 Dec 2012 08:20:25 +0100 Subject: Remove warning for assigning to symbol without prompt. Annoying when running allnoconfig_simpler.py. --- kconfiglib.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'kconfiglib.py') 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 -- cgit v1.2.3