]> git.sur5r.net Git - kconfig-frontends/commitdiff
frontends/qconf: silence a warning
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 2 May 2017 19:03:16 +0000 (21:03 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 3 May 2017 19:36:37 +0000 (21:36 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
frontends/qconf/qconf.cc
frontends/qconf/qconf.cc.patch

index bdfb62973f2aecb23d2b01d6ffe3814a1de1aff5..a45d30b90b071915e87e96765d0653f44bc6f340 100644 (file)
@@ -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);
index 7b3e53242214dd3c614871cf6e39867c053a31f8..cdea157bff8754ca61dad710b0ec85b2154dd142 100644 (file)
@@ -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);