From 6fbf7250b10d46ddc86ec7afb64be942df335b3c Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 7 Aug 2023 14:52:37 -0700 Subject: [PATCH] build: fix warning from release build --- src/sysprof-agent/sysprof-agent.c | 2 +- src/sysprof-cli/sysprof-cli.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sysprof-agent/sysprof-agent.c b/src/sysprof-agent/sysprof-agent.c index 08ca46c2..67561b97 100644 --- a/src/sysprof-agent/sysprof-agent.c +++ b/src/sysprof-agent/sysprof-agent.c @@ -356,7 +356,7 @@ sysprof_agent_record_cb (GObject *object, g_assert (G_IS_ASYNC_RESULT (result)); g_assert (user_data == NULL); - if (!(recording = sysprof_profiler_record_finish (SYSPROF_PROFILER (object), result, &error))) + if (!(recording = sysprof_profiler_record_finish (profiler, result, &error))) g_error ("Failed to start profiling session: %s", error->message); diagnostics = sysprof_recording_list_diagnostics (recording); diff --git a/src/sysprof-cli/sysprof-cli.c b/src/sysprof-cli/sysprof-cli.c index dfd681ba..3ca100d7 100644 --- a/src/sysprof-cli/sysprof-cli.c +++ b/src/sysprof-cli/sysprof-cli.c @@ -217,7 +217,7 @@ sysprof_cli_record_cb (GObject *object, g_assert (G_IS_ASYNC_RESULT (result)); g_assert (user_data == NULL); - if (!(recording = sysprof_profiler_record_finish (SYSPROF_PROFILER (object), result, &error))) + if (!(recording = sysprof_profiler_record_finish (profiler, result, &error))) g_error ("Failed to start profiling session: %s", error->message); diagnostics = sysprof_recording_list_diagnostics (recording);