From eea1eb1ad667a5f3406f89838def1cfbe1e00c21 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 10 Jul 2017 12:36:50 -0400 Subject: [PATCH] Fix: g_hash_table_insert returns 'void' in glib <= 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- cli/babeltrace.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cli/babeltrace.c b/cli/babeltrace.c index 7c98cdf0..a058bceb 100644 --- a/cli/babeltrace.c +++ b/cli/babeltrace.c @@ -2010,7 +2010,6 @@ int set_stream_intersections(struct cmd_run_ctx *ctx, */ for (stream_idx = 0; stream_idx < stream_count; stream_idx++) { const char *stream_path; - gboolean hash_ret; port_id = g_new0(struct port_id, 1); if (!port_id) { @@ -2073,9 +2072,7 @@ int set_stream_intersections(struct cmd_run_ctx *ctx, BT_LOGD("Inserting stream intersection "); - hash_ret = g_hash_table_insert(ctx->intersections, - port_id, trace_range); - assert(hash_ret); + g_hash_table_insert(ctx->intersections, port_id, trace_range); port_id = NULL; trace_range = NULL; -- 2.34.1