From 352722c9dd1cc67cc1243541dcf702c19bd2fb88 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 2 May 2017 21:03:16 +0200 Subject: [PATCH] frontends/qconf: silence a warning Signed-off-by: "Yann E. MORIN" --- frontends/qconf/qconf.cc | 2 +- frontends/qconf/qconf.cc.patch | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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); -- 2.39.5