calendar-monitor: fix unused variable warning
Fixes:
[43/52] Compiling C object 'src/25a6634@@gcal-private@sta/core_gcal-calendar-monitor.c.o'
../../../../Projects/gnome-calendar/src/core/gcal-calendar-monitor.c: In function ‘on_client_view_objects_added_cb’:
../../../../Projects/gnome-calendar/src/core/gcal-calendar-monitor.c:402:16: warning: variable ‘old_size’ set but not used [-Wunused-but-set-variable]
402 | gint old_size;
| ^~~~~~~~
This commit is contained in:
@@ -399,7 +399,9 @@ on_client_view_objects_added_cb (ECalClientView *view,
|
|||||||
{
|
{
|
||||||
GenerateRecurrencesData recurrences_data;
|
GenerateRecurrencesData recurrences_data;
|
||||||
ICalComponent *icomponent;
|
ICalComponent *icomponent;
|
||||||
|
#if GCAL_ENABLE_TRACE
|
||||||
gint old_size;
|
gint old_size;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (g_cancellable_is_cancelled (self->cancellable))
|
if (g_cancellable_is_cancelled (self->cancellable))
|
||||||
return;
|
return;
|
||||||
@@ -409,7 +411,10 @@ on_client_view_objects_added_cb (ECalClientView *view,
|
|||||||
recurrences_data.monitor = self;
|
recurrences_data.monitor = self;
|
||||||
recurrences_data.expanded_events = expanded_events;
|
recurrences_data.expanded_events = expanded_events;
|
||||||
|
|
||||||
|
#if GCAL_ENABLE_TRACE
|
||||||
old_size = expanded_events->len;
|
old_size = expanded_events->len;
|
||||||
|
#endif
|
||||||
|
|
||||||
e_cal_client_generate_instances_for_object_sync (client,
|
e_cal_client_generate_instances_for_object_sync (client,
|
||||||
icomponent,
|
icomponent,
|
||||||
range_start_time,
|
range_start_time,
|
||||||
|
|||||||
Reference in New Issue
Block a user