From: Masahiro Yamada Date: Wed, 25 Mar 2020 03:14:31 +0000 (+0900) Subject: kconfig: remove unused variable in qconf.cc X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dbd35860122b91a34b79162d1d1bed98b15c7e91;p=linux.git kconfig: remove unused variable in qconf.cc If this file were compiled with -Wall, the following warning would be reported: scripts/kconfig/qconf.cc:312:6: warning: unused variable ā€˜i’ [-Wunused-variable] int i; ^ The commit prepares to turn on -Wall for C++ host programs. Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook --- diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 82773cc35d356..50a5245d87bb7 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -309,8 +309,6 @@ ConfigList::ConfigList(ConfigView* p, const char *name) showName(false), showRange(false), showData(false), mode(singleMode), optMode(normalOpt), rootEntry(0), headerPopup(0) { - int i; - setObjectName(name); setSortingEnabled(false); setRootIsDecorated(true);