[gnome-todo] task: Fix a compiler warning



commit f9ce96d51dd94064b06d22a76953ea2ce1c98f28
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Jul 21 11:00:26 2015 +0100

    task: Fix a compiler warning
    
    Leave a message to our future selves about icaltimezone_convert_time()
    as well.

 src/gtd-task.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/gtd-task.c b/src/gtd-task.c
index 58d2c5a..2676c18 100644
--- a/src/gtd-task.c
+++ b/src/gtd-task.c
@@ -54,7 +54,7 @@ enum
   LAST_PROP
 };
 
-GDateTime*
+static GDateTime*
 gtd_task__convert_icaltime (const icaltimetype *date)
 {
   GTimeZone *tz;
@@ -422,7 +422,6 @@ gtd_task_set_complete (GtdTask  *task,
       if (complete)
         {
           GDateTime *now = g_date_time_new_now_local ();
-          icaltimezone *tz;
 
           percent = 100;
           status = ICAL_STATUS_COMPLETED;
@@ -437,9 +436,13 @@ gtd_task_set_complete (GtdTask  *task,
           dt->is_date = 0;
           dt->is_utc = 1;
 
-          /* convert timezone */
+          /* convert timezone
+           *
+           * FIXME: This does not do anything until we have an ical
+           * timezone associated with the task
+           */
           icaltimezone_convert_time (dt,
-                                     tz,
+                                     NULL,
                                      icaltimezone_get_utc_timezone ());
 
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]