From patchwork Sun May 25 16:47:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Konstantin Khlebnikov X-Patchwork-Id: 4238591 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 78E009F32B for ; Sun, 25 May 2014 16:48:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BB66720225 for ; Sun, 25 May 2014 16:47:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E8D5F20204 for ; Sun, 25 May 2014 16:47:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751266AbaEYQr6 (ORCPT ); Sun, 25 May 2014 12:47:58 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:48960 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbaEYQr5 (ORCPT ); Sun, 25 May 2014 12:47:57 -0400 Received: by mail-lb0-f178.google.com with SMTP id w7so3738449lbi.37 for ; Sun, 25 May 2014 09:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:cc:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=bTUKZBQIRaiMUi4zpAbNHRLDzRq/NKR3w5gqrBufVAM=; b=lSSPGjxoKO5POhwKgaglw82yVHLN2FGf5GJxjoSYxRQ/KEPT6Si+RxrnW4PIC/Ao1X FvdI0eV4oTZe5gmynT5mA0a8sI5r8zi0+zO6DKJ7nrKVBTYXxx5qTuXFHzMQfO8UcfCP Ow61M3Ih/NGbVeLNTdCPiGGrN5Go+90V0qZ4074NqYidyeImJzJsGJeqNCY6HrpwYEBd Z2F7NH8Z7uIwQoMxSxAtDoIRQKyLrIY4e7Cs5Qk12z7iaL+Hg0p1pTk9hBlDOJHdW047 XNze/8e9swYJ0o5dvT51pHJ1UCAxBFQr/4iiseB39iSP2Z6fBI/KgQCFACmBhxQ62srj HaYw== X-Received: by 10.112.35.14 with SMTP id d14mr12649225lbj.43.1401036476163; Sun, 25 May 2014 09:47:56 -0700 (PDT) Received: from localhost (37-145-62-85.broadband.corbina.ru. [37.145.62.85]) by mx.google.com with ESMTPSA id mk2sm9496901lbc.8.2014.05.25.09.47.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 May 2014 09:47:55 -0700 (PDT) Subject: [PATCH] kconfig: plug false-positive warning in get_prompt_str() seen with gcc-4.9 From: Konstantin Khlebnikov To: "Yann E. MORIN" , linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org Date: Sun, 25 May 2014 20:47:51 +0400 Message-ID: <20140525164751.28577.74072.stgit@zurg> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP scripts/kconfig/menu.c: In function ‘get_symbol_str’: scripts/kconfig/menu.c:590:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized] jump->offset = strlen(r->s); ^ scripts/kconfig/menu.c:551:19: note: ‘jump’ was declared here struct jump_key *jump; ^ Signed-off-by: Konstantin Khlebnikov --- scripts/kconfig/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 3ac2c9c..5cd0f5e 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -548,7 +548,7 @@ static void get_prompt_str(struct gstr *r, struct property *prop, { int i, j; struct menu *submenu[8], *menu, *location = NULL; - struct jump_key *jump; + struct jump_key *jump = NULL; str_printf(r, _("Prompt: %s\n"), _(prop->text)); menu = prop->menu->parent;