coreboot-kgpe-d16/util/kconfig
Stefan Reinauer 1824ce3c40 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>

Change-Id: I43de391c9573a28c66d17e7dc535033be39060de
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/9312
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
2015-04-06 23:14:09 +02:00
..
lxdialog kconfig: lxdialog: fix spelling 2015-04-06 23:13:40 +02:00
check.sh kbuild: trivial - remove trailing empty lines 2015-04-06 23:13:50 +02:00
conf.c kbuild: trivial - use tabs for code indent where possible 2015-04-06 23:13:15 +02:00
confdata.c kconfig: use va_end to match corresponding va_start 2015-04-06 23:13:29 +02:00
expr.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
expr.h kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
gconf.c kbuild: trivial - use tabs for code indent where possible 2015-04-06 23:13:15 +02:00
gconf.glade kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
images.c Kconfig! 2009-08-12 15:00:51 +00:00
kxgettext.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
list.h kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
lkc.h kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
lkc_proto.h kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
Makefile kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
mconf.c kbuild: trivial - remove trailing empty lines 2015-04-06 23:13:50 +02:00
menu.c kconfig: Fix warning "‘jump’ may be used uninitialized" 2015-04-06 23:14:09 +02:00
miniconfig util: Add miniconfig, a script to minimize coreboot configurations 2015-03-26 03:06:54 +01:00
nconf.c kbuild: trivial - remove trailing empty lines 2015-04-06 23:13:50 +02:00
nconf.gui.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
nconf.h kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
POTFILES.in kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
qconf.cc kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
qconf.h kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
regex.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
regex.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
symbol.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
util.c kbuild: trivial - remove trailing empty lines 2015-04-06 23:13:50 +02:00
zconf.gperf kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
zconf.hash.c_shipped kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
zconf.l kbuild: trivial - use tabs for code indent where possible 2015-04-06 23:13:15 +02:00
zconf.lex.c_shipped kbuild: trivial - use tabs for code indent where possible 2015-04-06 23:13:15 +02:00
zconf.tab.c_shipped kbuild: trivial - use tabs for code indent where possible 2015-04-06 23:13:15 +02:00
zconf.y kbuild: trivial - use tabs for code indent where possible 2015-04-06 23:13:15 +02:00