bt2c::Logger: remove unused cLevel() method
[babeltrace.git] / src / plugins / utils / trimmer / trimmer.c
index 31cad1c4823613adbaee93ee3f0ac6199680991f..d13a9fef3d4227f3abc7b741c2f2796e7c096501 100644 (file)
@@ -173,7 +173,7 @@ bool compile_and_match(const char *pattern, const char *string, GMatchInfo **mat
                /*
                 * g_regex_match allocates `*match_info` even if it returns
                 * FALSE.  If there's no match, we have no use for it, so free
-                * it immediatly and don't return it to the caller.
+                * it immediately and don't return it to the caller.
                 */
                g_match_info_free(*match_info);
                *match_info = NULL;
@@ -425,7 +425,7 @@ end:
  */
 static
 int set_bound_from_param(struct trimmer_comp *trimmer_comp,
-               const char *param_name, const bt_value *param,
+               const bt_value *param,
                struct trimmer_bound *bound, bool is_gmt)
 {
        int ret;
@@ -551,7 +551,7 @@ bt_component_class_initialize_method_status init_trimmer_comp_from_params(
 
         value = bt_value_map_borrow_entry_value_const(params, "begin");
        if (value) {
-               if (set_bound_from_param(trimmer_comp, "begin", value,
+               if (set_bound_from_param(trimmer_comp, value,
                                &trimmer_comp->begin, trimmer_comp->is_gmt)) {
                        /* set_bound_from_param() logs errors */
                        status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR;
@@ -564,7 +564,7 @@ bt_component_class_initialize_method_status init_trimmer_comp_from_params(
 
         value = bt_value_map_borrow_entry_value_const(params, "end");
        if (value) {
-               if (set_bound_from_param(trimmer_comp, "end", value,
+               if (set_bound_from_param(trimmer_comp, value,
                                &trimmer_comp->end, trimmer_comp->is_gmt)) {
                        /* set_bound_from_param() logs errors */
                        status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR;
@@ -594,8 +594,9 @@ end:
 
 bt_component_class_initialize_method_status trimmer_init(
                bt_self_component_filter *self_comp_flt,
-               bt_self_component_filter_configuration *config,
-               const bt_value *params, void *init_data)
+               bt_self_component_filter_configuration *config __attribute__((unused)),
+               const bt_value *params,
+               void *init_data __attribute__((unused)))
 {
        bt_component_class_initialize_method_status status;
        bt_self_component_add_port_status add_port_status;
@@ -681,7 +682,7 @@ void destroy_trimmer_iterator_stream_state(
 bt_message_iterator_class_initialize_method_status trimmer_msg_iter_init(
                bt_self_message_iterator *self_msg_iter,
                bt_self_message_iterator_configuration *config,
-               bt_self_component_port_output *port)
+               bt_self_component_port_output *port __attribute__((unused)))
 {
        bt_message_iterator_class_initialize_method_status status;
        bt_message_iterator_create_from_message_iterator_status
This page took 0.025587 seconds and 4 git commands to generate.