Fix: maybe-uninitialized warning in create_relative_field_ref()
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 30 Apr 2019 15:24:11 +0000 (11:24 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:12:56 +0000 (00:12 -0400)
commita48e5ef4b4bc17de36946596ccd4bf1ec7779718
treeca43c7a6b29e896bcaa0fa18d5630d00cc105196
parenta73035a32cf02f83c9de619fb2090c14c968ff97
Fix: maybe-uninitialized warning in create_relative_field_ref()

  translate-trace-ir-to-ctf-ir.c: In function ‘resolve_field_class’:
  translate-trace-ir-to-ctf-ir.c:302:6: error: ‘tgt_fc_name’ may be used
    uninitialized in this function [-Werror=maybe-uninitialized]
       g_string_assign(tgt_field_ref,
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         tgt_fc_name);
         ~~~~~~~~~~~~
  translate-trace-ir-to-ctf-ir.c:177:14: note: ‘tgt_fc_name’ was declared here
    const char *tgt_fc_name;

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I8d3398a852bf3ca412bb479eae72a81a3959d220
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1031
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c
This page took 0.024672 seconds and 5 git commands to generate.