[PATCH resend 05/10] kconfig qconf: fix -Wall compiler warnings
From: Markus Heidelberg
Date: Sun May 17 2009 - 19:38:54 EST
These compiler warnings occure when adding -Wall to HOSTCXXFLAGS in
/Makefile
scripts/kconfig/qconf.h: In constructor âConfigInfoView::ConfigInfoView(QWidget*, const char*)â:
scripts/kconfig/qconf.h:274: warning: âConfigInfoView::menuâ will be initialized after
scripts/kconfig/qconf.h:273: warning: âsymbol* ConfigInfoView::symâ
scripts/kconfig/qconf.cc:922: warning: when initialized here
scripts/kconfig/qconf.cc: In member function âvoid ConfigMainWindow::setMenuLink(menu*)â:
scripts/kconfig/qconf.cc:1498: warning: enumeration value âmenuModeâ not handled in switch
scripts/kconfig/qconf.cc:1498: warning: enumeration value âlistModeâ not handled in switch
scripts/kconfig/qconf.cc: In member function âvoid ConfigMainWindow::saveSettings()â:
scripts/kconfig/qconf.cc:1664: warning: enumeration value âmenuModeâ not handled in switch
scripts/kconfig/qconf.cc:1664: warning: enumeration value âlistModeâ not handled in switch
Signed-off-by: Markus Heidelberg <markus.heidelberg@xxxxxx>
---
scripts/kconfig/qconf.cc | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 5d0fd38..2bd6ed0 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -920,7 +920,7 @@ void ConfigView::updateListAll(void)
}
ConfigInfoView::ConfigInfoView(QWidget* parent, const char *name)
- : Parent(parent, name), menu(0), sym(0)
+ : Parent(parent, name), sym(0), menu(0)
{
if (name) {
configSettings->beginGroup(name);
@@ -1524,6 +1524,8 @@ void ConfigMainWindow::setMenuLink(struct menu *menu)
case fullMode:
list = configList;
break;
+ default:
+ break;
}
if (list) {
@@ -1673,6 +1675,9 @@ void ConfigMainWindow::saveSettings(void)
case fullMode :
entry = "full";
break;
+
+ default:
+ break;
}
configSettings->writeEntry("/listMode", entry);
--
1.6.3.1.20.ga30f
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/