From: Yann E. MORIN Date: Tue, 2 May 2017 19:03:16 +0000 (+0200) Subject: frontends/qconf: silence a warning X-Git-Tag: v4.11.0.0~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=352722c9dd1cc67cc1243541dcf702c19bd2fb88;p=kconfig-frontends frontends/qconf: silence a warning Signed-off-by: "Yann E. MORIN" --- diff --git a/frontends/qconf/qconf.cc b/frontends/qconf/qconf.cc index bdfb629..a45d30b 100644 --- a/frontends/qconf/qconf.cc +++ b/frontends/qconf/qconf.cc @@ -318,7 +318,7 @@ ConfigList::ConfigList(ConfigView* p, const char *name) showName(false), showRange(false), showData(false), mode(singleMode), optMode(normalOpt), rootEntry(0), headerPopup(0) { - int i; + int i __attribute__((unused)); setObjectName(name); setSortingEnabled(false); diff --git a/frontends/qconf/qconf.cc.patch b/frontends/qconf/qconf.cc.patch index 7b3e532..cdea157 100644 --- a/frontends/qconf/qconf.cc.patch +++ b/frontends/qconf/qconf.cc.patch @@ -10,3 +10,12 @@ diff --git a/frontends/qconf/qconf.cc b/frontends/qconf/qconf.cc #ifdef _ # undef _ +@@ -318,7 +318,7 @@ + showName(false), showRange(false), showData(false), mode(singleMode), optMode(normalOpt), + rootEntry(0), headerPopup(0) + { +- int i; ++ int i __attribute__((unused)); + + setObjectName(name); + setSortingEnabled(false);