Fix warnings emitted by `gcc -Wall`
[babeltrace.git] / lib / ctf-ir / field-types.c
index 4a4d789c48e8c5c394e6706781ca8b7d6c37a5fd..78feecb9fa624715df70c2dc5b201f2fd853ac09 100644 (file)
@@ -4714,7 +4714,6 @@ struct bt_ctf_field_type *bt_ctf_field_type_string_copy(
                struct bt_ctf_field_type *type)
 {
        struct bt_ctf_field_type *copy;
-       struct bt_ctf_field_type_string *string;
 
        BT_LOGD("Copying string field type's: addr=%p", type);
        copy = bt_ctf_field_type_string_create();
@@ -4723,8 +4722,6 @@ struct bt_ctf_field_type *bt_ctf_field_type_string_copy(
                goto end;
        }
 
-       string = container_of(type, struct bt_ctf_field_type_string,
-               parent);
        BT_LOGD("Copied string field type: original-ft-addr=%p, copy-ft-addr=%p",
                type, copy);
 end:
This page took 0.026831 seconds and 4 git commands to generate.