From patchwork Sun Apr 19 13:41:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Heidelberg X-Patchwork-Id: 18909 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3JDfNFa014470 for ; Sun, 19 Apr 2009 13:41:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760241AbZDSNl2 (ORCPT ); Sun, 19 Apr 2009 09:41:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760310AbZDSNl2 (ORCPT ); Sun, 19 Apr 2009 09:41:28 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:39003 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758385AbZDSNlV (ORCPT ); Sun, 19 Apr 2009 09:41:21 -0400 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate03.web.de (Postfix) with ESMTP id D8E4CFABE34B; Sun, 19 Apr 2009 15:41:20 +0200 (CEST) Received: from [89.59.103.102] (helo=localhost.localdomain) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #277) id 1LvXGq-0002tO-04; Sun, 19 Apr 2009 15:41:20 +0200 From: Markus Heidelberg To: Roman Zippel Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Heidelberg Subject: [PATCH 05/10] kconfig qconf: fix -Wall compiler warnings Date: Sun, 19 Apr 2009 15:41:22 +0200 Message-Id: <1240148487-27584-6-git-send-email-markus.heidelberg@web.de> X-Mailer: git-send-email 1.6.3.rc1.24.g467d50 In-Reply-To: <1240148487-27584-1-git-send-email-markus.heidelberg@web.de> References: <1240148487-27584-1-git-send-email-markus.heidelberg@web.de> MIME-Version: 1.0 X-Sender: markus.heidelberg@web.de X-Provags-ID: V01U2FsdGVkX186yLDV+hix94oc2hq1Cy9ektX3MXsNo6YFlnII rLneQ/oqaMG3OCh1yAvHVCRYsg5I+5amp1hmDvtkpwC7334J2M atE7sce5UUNKJHnosGog== Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 --- 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);