ctf: silence bogus warning in set_field_refs()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 11 Sep 2019 14:57:15 +0000 (10:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 17 Sep 2019 19:26:07 +0000 (15:26 -0400)
commit48cb851a8f66c8f0d7e9db086c3c9b5c6172efb9
treec411f2f7c150c8257a9b94960cbfe1588e85b4d3
parent2c8da6d490b093d57cee31f15d8a05928c8b5d2c
ctf: silence bogus warning in set_field_refs()

gcc 9.1.0 warns that struct_fc my be used uninitialized. The code
flow doesn't allow this to happen, but this warning is annoying/scary
and easily fixed by initializing struct_fc to NULL.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ib4c702dfc0ca4a29e387b384a1603bdf4634c599
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2028
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c
This page took 0.02562 seconds and 4 git commands to generate.