From: Michal Marek <mmarek@suse.cz>
To: "Peter Kümmel" <syntheticpp@gmx.net>
Cc: linux-kbuild@vger.kernel.org, yann.morin.1998@free.fr
Subject: Re: [PATCH v2] kconfig: Fix warning "‘jump’ may be used uninitialized"
Date: Fri, 28 Nov 2014 14:42:48 +0100 [thread overview]
Message-ID: <54787BD8.7050102@suse.cz> (raw)
In-Reply-To: <1415098919-21836-1-git-send-email-syntheticpp@gmx.net>
On 2014-11-04 12:01, Peter Kümmel wrote:
> Warning:
> In file included from scripts/kconfig/zconf.tab.c:2537:0:
> 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);
>
> Simplifies the test logic because (head && local) means (jump != 0)
> and makes GCC happy when checking if the jump pointer was initialized.
The warning is bogus, but since this has been reported by several people
now, let's shut it up this way. Applied to kbuild.git#kbuild.
Michal
prev parent reply other threads:[~2014-11-28 13:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-04 11:01 [PATCH v2] kconfig: Fix warning "‘jump’ may be used uninitialized" Peter Kümmel
2014-11-28 13:42 ` Michal Marek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54787BD8.7050102@suse.cz \
--to=mmarek@suse.cz \
--cc=linux-kbuild@vger.kernel.org \
--cc=syntheticpp@gmx.net \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox