]> code.ossystems Code Review - openembedded-core.git/commit
babeltrace2: initialize the other_entry pointer
authorMingli Yu <mingli.yu@windriver.com>
Wed, 11 Mar 2020 13:49:33 +0000 (21:49 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Mar 2020 22:49:23 +0000 (22:49 +0000)
commit1b98db372a1fdaecf9bb897b0ee4b2e72af22f81
tree3c6a50b21e97d760972be8a26495e8bfa85156d2
parent9d8edf33d1f5d89b310923b0aa3cc967317c7c49
babeltrace2: initialize the other_entry pointer

When add below line to local.conf to enable debug build:

DEBUG_BUILD = "1"

There comes below failure when run "bitbake babeltrace2"
| ../../../../../git/src/plugins/ctf/fs-src/fs.c: In function 'ds_index_insert_ds_index_entry_sorted':
| ../../../../../git/src/plugins/ctf/fs-src/fs.c:702:5: error: 'other_entry' may be used uninitialized in this function [-Werror=maybe-uninitialized]
|   702 |    !ds_index_entries_equal(entry, other_entry)) {

So initialize the other_entry pointer to fix the above error.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/lttng/babeltrace2/0001-fs.c-initialize-other_entry.patch [new file with mode: 0644]
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb