u-boot/scripts/kconfig
Peter Kümmel 60cd06e13c kconfig: Fix warning "‘jump’ may be used uninitialized"
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.

Signed-off-by: Peter Kümmel <syntheticpp@gmx.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
[ imported from Linux Kernel, commit 2d5603060967 ]
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
2014-12-08 09:35:48 -05:00
..
lxdialog kbuild: Make scripts executable 2014-11-12 13:25:42 -05:00
.gitignore kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
check.sh kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
conf.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
confdata.c kconfig: switch to Kconfig 2014-07-30 08:48:03 -04:00
expr.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
expr.h kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
gconf.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
gconf.glade kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
images.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
kxgettext.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
list.h kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
lkc.h kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
lkc_proto.h kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
Makefile kconfig: sync kconfig files with Linux 3.18-rc1 2014-11-07 16:27:07 -05:00
mconf.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
menu.c kconfig: Fix warning "‘jump’ may be used uninitialized" 2014-12-08 09:35:48 -05:00
merge_config.sh Correct two non-functional misspellings "overrided". 2014-10-27 17:54:11 -04:00
nconf.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
nconf.gui.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
nconf.h kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
POTFILES.in kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
qconf.cc kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
qconf.h kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
streamline_config.pl kbuild: Make scripts executable 2014-11-12 13:25:42 -05:00
symbol.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
util.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
zconf.gperf kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
zconf.hash.c_shipped kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
zconf.l kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
zconf.lex.c_shipped kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
zconf.tab.c_shipped kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
zconf.y kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00