kconfig: remove unused variable in qconf.cc
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 25 Mar 2020 03:14:31 +0000 (12:14 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 29 Mar 2020 13:37:53 +0000 (22:37 +0900)
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 <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
scripts/kconfig/qconf.cc

index 82773cc35d356a82d20287e3982122d61dd92fbc..50a5245d87bb72cf1bd02866d43ecb03909b5dad 100644 (file)
@@ -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);