diff options
author | Markus Heidelberg <markus.heidelberg@web.de> | 2009-05-17 19:36:49 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-06-09 16:37:48 -0400 |
commit | 98403a91389d11edd954e8f89dcffc3db525657f (patch) | |
tree | bbfb429f1aed44ab7bc04c9d973889f7d1f648b6 /scripts/kconfig/qconf.cc | |
parent | c26dd719a5b9d94d12211f2d101bd7dffb7f9f1f (diff) |
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: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r-- | 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 5d0fd38b089b..2bd6ed021aac 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc | |||
@@ -920,7 +920,7 @@ void ConfigView::updateListAll(void) | |||
920 | } | 920 | } |
921 | 921 | ||
922 | ConfigInfoView::ConfigInfoView(QWidget* parent, const char *name) | 922 | ConfigInfoView::ConfigInfoView(QWidget* parent, const char *name) |
923 | : Parent(parent, name), menu(0), sym(0) | 923 | : Parent(parent, name), sym(0), menu(0) |
924 | { | 924 | { |
925 | if (name) { | 925 | if (name) { |
926 | configSettings->beginGroup(name); | 926 | configSettings->beginGroup(name); |
@@ -1524,6 +1524,8 @@ void ConfigMainWindow::setMenuLink(struct menu *menu) | |||
1524 | case fullMode: | 1524 | case fullMode: |
1525 | list = configList; | 1525 | list = configList; |
1526 | break; | 1526 | break; |
1527 | default: | ||
1528 | break; | ||
1527 | } | 1529 | } |
1528 | 1530 | ||
1529 | if (list) { | 1531 | if (list) { |
@@ -1673,6 +1675,9 @@ void ConfigMainWindow::saveSettings(void) | |||
1673 | case fullMode : | 1675 | case fullMode : |
1674 | entry = "full"; | 1676 | entry = "full"; |
1675 | break; | 1677 | break; |
1678 | |||
1679 | default: | ||
1680 | break; | ||
1676 | } | 1681 | } |
1677 | configSettings->writeEntry("/listMode", entry); | 1682 | configSettings->writeEntry("/listMode", entry); |
1678 | 1683 | ||