mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: fix warnings for release builds
This commit is contained in:
@ -68,11 +68,10 @@ sp_cpu_visualizer_row_discover_counters (GTask *task,
|
||||
const SpCaptureFrameType types[] = { SP_CAPTURE_FRAME_CTRDEF };
|
||||
SpCaptureReader *reader = task_data;
|
||||
g_autoptr(SpCaptureCursor) cursor = NULL;
|
||||
SpCpuVisualizerRow *self = source_object;
|
||||
g_autoptr(GArray) counters = NULL;
|
||||
|
||||
g_assert (G_IS_TASK (task));
|
||||
g_assert (SP_IS_CPU_VISUALIZER_ROW (self));
|
||||
g_assert (SP_IS_CPU_VISUALIZER_ROW (source_object));
|
||||
g_assert (reader != NULL);
|
||||
|
||||
counters = g_array_new (FALSE, FALSE, sizeof (guint));
|
||||
|
||||
@ -332,10 +332,9 @@ sp_profiler_menu_button_create_row (gpointer itemptr,
|
||||
gpointer user_data)
|
||||
{
|
||||
SpProcessModelItem *item = itemptr;
|
||||
SpProfilerMenuButton *self = user_data;
|
||||
|
||||
g_assert (SP_IS_PROCESS_MODEL_ITEM (item));
|
||||
g_assert (SP_IS_PROFILER_MENU_BUTTON (self));
|
||||
g_assert (SP_IS_PROFILER_MENU_BUTTON (user_data));
|
||||
|
||||
return g_object_new (SP_TYPE_PROCESS_MODEL_ROW,
|
||||
"item", item,
|
||||
|
||||
Reference in New Issue
Block a user