Commit 98403a91 authored by Markus Heidelberg's avatar Markus Heidelberg Committed by Sam Ravnborg

kconfig qconf: fix -Wall compiler warnings

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: default avatarMarkus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent c26dd719
...@@ -920,7 +920,7 @@ void ConfigView::updateListAll(void) ...@@ -920,7 +920,7 @@ void ConfigView::updateListAll(void)
} }
ConfigInfoView::ConfigInfoView(QWidget* parent, const char *name) ConfigInfoView::ConfigInfoView(QWidget* parent, const char *name)
: Parent(parent, name), menu(0), sym(0) : Parent(parent, name), sym(0), menu(0)
{ {
if (name) { if (name) {
configSettings->beginGroup(name); configSettings->beginGroup(name);
...@@ -1524,6 +1524,8 @@ void ConfigMainWindow::setMenuLink(struct menu *menu) ...@@ -1524,6 +1524,8 @@ void ConfigMainWindow::setMenuLink(struct menu *menu)
case fullMode: case fullMode:
list = configList; list = configList;
break; break;
default:
break;
} }
if (list) { if (list) {
...@@ -1673,6 +1675,9 @@ void ConfigMainWindow::saveSettings(void) ...@@ -1673,6 +1675,9 @@ void ConfigMainWindow::saveSettings(void)
case fullMode : case fullMode :
entry = "full"; entry = "full";
break; break;
default:
break;
} }
configSettings->writeEntry("/listMode", entry); configSettings->writeEntry("/listMode", entry);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment