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>
Thu, 3 Oct 2019 14:45:10 +0000 (10:45 -0400)
commita5e289cfb938f6da7a50086bd75dcd024fcb49cc
tree5e1d0c65a52fe32bb8d85f3824480b1a0002423b
parentce706c971a58cb5cbaa0eec0c4837708de2a3254
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.024262 seconds and 4 git commands to generate.