Skip to content

Commit

Permalink
kconfig: remove unused variable in qconf.cc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada committed Mar 29, 2020
1 parent 51e4064 commit dbd3586
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dbd3586

Please sign in to comment.