X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fmetadata%2Fctf-meta-translate.cpp;h=f86b979b148a7f396de4f0c3ce0f9b99940c7557;hb=e18a6ca2cd80b5983cedb63054b2c5c0fe5e4478;hp=c39948eee13966479e9dfc40053754bb303f85cc;hpb=4164020e790fa6c0700715936b40a3fa46df479e;p=babeltrace.git diff --git a/src/plugins/ctf/common/metadata/ctf-meta-translate.cpp b/src/plugins/ctf/common/metadata/ctf-meta-translate.cpp index c39948ee..f86b979b 100644 --- a/src/plugins/ctf/common/metadata/ctf-meta-translate.cpp +++ b/src/plugins/ctf/common/metadata/ctf-meta-translate.cpp @@ -4,14 +4,15 @@ * Copyright 2018 Philippe Proulx */ -#include -#include "common/macros.h" -#include "common/assert.h" #include -#include +#include #include #include -#include + +#include + +#include "common/assert.h" +#include "common/macros.h" #include "ctf-meta-visitors.hpp" @@ -129,7 +130,7 @@ static inline bt_field_class *ctf_field_class_float_to_ir(struct ctx *ctx, } static inline bt_field_class *ctf_field_class_string_to_ir(struct ctx *ctx, - struct ctf_field_class_string *fc) + struct ctf_field_class_string *) { bt_field_class *ir_fc = bt_field_class_string_create(ctx->ir_tc); @@ -139,9 +140,8 @@ static inline bt_field_class *ctf_field_class_string_to_ir(struct ctx *ctx, static inline void translate_struct_field_class_members(struct ctx *ctx, struct ctf_field_class_struct *fc, - bt_field_class *ir_fc, - bool with_header_prefix, - struct ctf_field_class_struct *context_fc) + bt_field_class *ir_fc, bool, + struct ctf_field_class_struct *) { uint64_t i; int ret; @@ -618,13 +618,12 @@ end: return ret; } -BT_HIDDEN int ctf_trace_class_translate(bt_self_component *self_comp, bt_trace_class *ir_tc, struct ctf_trace_class *tc) { int ret = 0; uint64_t i; - struct ctx ctx = {0}; + struct ctx ctx = {}; ctx.self_comp = self_comp; ctx.tc = tc;