diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-17 00:11:55 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-21 10:52:36 +0800 |
commit | a538f3f3100dbdbae1ea172ae3b8344e650d529d (patch) | |
tree | f1f8b15c56dbe92e46352853373382af9bf92de0 /calendar | |
parent | d8fd55f9ec0e70a0d5c8529ea989f8c272d0c443 (diff) | |
download | gsoc2013-evolution-a538f3f3100dbdbae1ea172ae3b8344e650d529d.tar gsoc2013-evolution-a538f3f3100dbdbae1ea172ae3b8344e650d529d.tar.gz gsoc2013-evolution-a538f3f3100dbdbae1ea172ae3b8344e650d529d.tar.bz2 gsoc2013-evolution-a538f3f3100dbdbae1ea172ae3b8344e650d529d.tar.lz gsoc2013-evolution-a538f3f3100dbdbae1ea172ae3b8344e650d529d.tar.xz gsoc2013-evolution-a538f3f3100dbdbae1ea172ae3b8344e650d529d.tar.zst gsoc2013-evolution-a538f3f3100dbdbae1ea172ae3b8344e650d529d.zip |
Fix several types of pedantic compiler warnings.
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/conduits/calendar/calendar-conduit.c | 2 | ||||
-rw-r--r-- | calendar/conduits/common/libecalendar-common-conduit.c | 4 | ||||
-rw-r--r-- | calendar/conduits/todo/todo-conduit.c | 2 | ||||
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 2 | ||||
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 4 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-details-page.c | 2 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 2 | ||||
-rw-r--r-- | calendar/gui/e-cal-component-preview.c | 8 | ||||
-rw-r--r-- | calendar/gui/e-cal-config.h | 2 | ||||
-rw-r--r-- | calendar/gui/e-cal-list-view-config.c | 2 | ||||
-rw-r--r-- | calendar/gui/e-cal-menu.h | 4 | ||||
-rw-r--r-- | calendar/gui/e-cal-popup.h | 6 | ||||
-rw-r--r-- | calendar/gui/e-calendar-view.c | 2 | ||||
-rw-r--r-- | calendar/gui/e-cell-date-edit-config.c | 2 | ||||
-rw-r--r-- | calendar/gui/e-date-edit-config.c | 2 | ||||
-rw-r--r-- | calendar/gui/e-day-view-config.c | 2 |
16 files changed, 20 insertions, 28 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c index e7e5f57506..b9b6b3449c 100644 --- a/calendar/conduits/calendar/calendar-conduit.c +++ b/calendar/conduits/calendar/calendar-conduit.c @@ -1631,7 +1631,7 @@ pre_sync (GnomePilotConduit *conduit, pi_buffer_free(buffer); #endif unpack_AppointmentAppInfo (&(ctxt->ai), buf, len); - //unpack_CategoryAppInfo (&(ctxt->ai.category), buf, len); + /* unpack_CategoryAppInfo (&(ctxt->ai.category), buf, len); */ g_free (buf); check_for_slow_setting (conduit, ctxt); diff --git a/calendar/conduits/common/libecalendar-common-conduit.c b/calendar/conduits/common/libecalendar-common-conduit.c index fbbe0278b1..59f411da69 100644 --- a/calendar/conduits/common/libecalendar-common-conduit.c +++ b/calendar/conduits/common/libecalendar-common-conduit.c @@ -93,7 +93,7 @@ e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *categ category->name[i][j] = '\0'; } - //find a desktop id that is not in use between 128 and 255 + /* find a desktop id that is not in use between 128 and 255 */ for (desktopUniqueID = 128; desktopUniqueID <= 255; desktopUniqueID++) { int found = 0; for(j=0; j<PILOT_MAX_CATEGORIES; j++){ @@ -133,7 +133,7 @@ void e_pilot_local_category_to_remote(int * pilotCategory, ECalComponent *comp, int i; e_cal_component_get_categories_list (comp, &c_list); if (c_list) { - //list != 0, so at least 1 category is assigned + /* list != 0, so at least 1 category is assigned */ category_string = e_pilot_utf8_to_pchar((const char *)c_list->data); if (c_list->next != 0) { LOG (g_message ("Note: item has more categories in evolution, first chosen")); diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index f40bc82eab..7639291504 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -1013,7 +1013,7 @@ pre_sync (GnomePilotConduit *conduit, /* Get the default component */ if (!e_cal_get_default_object (ctxt->client, &icalcomp, NULL)) return -1; - LOG (g_message ( " Got default component: %p", icalcomp)); + LOG (g_message (" Got default component: %p", (gpointer) icalcomp)); ctxt->default_comp = e_cal_component_new (); if (!e_cal_component_set_icalcomponent (ctxt->default_comp, icalcomp)) { diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index 17c743126a..91554a56c1 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -1542,7 +1542,7 @@ display_notification (time_t trigger, CompQueuedAlarms *cqa, g_signal_connect (G_OBJECT (tray_data->query), "objects_removed", G_CALLBACK (on_dialog_objs_removed_cb), tray_data); - // FIXME: We should remove this check + /* FIXME: We should remove this check */ if (!config_data_get_notify_with_tray ()) { tray_blink_id = -1; open_alarm_dialog (tray_data); diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index c7b6050d3e..ec2f26a045 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -209,7 +209,7 @@ static void update_end_time_combo ( EventPage *epage); static void event_page_select_organizer (EventPage *epage, const char *backend_address); static void set_subscriber_info_string (EventPage *epage, const char *backend_address); -G_DEFINE_TYPE (EventPage, event_page, TYPE_COMP_EDITOR_PAGE); +G_DEFINE_TYPE (EventPage, event_page, TYPE_COMP_EDITOR_PAGE) static void event_page_dispose (GObject *object) @@ -1884,7 +1884,7 @@ enum { ATTENDEE_CAN_DELEGATE = 1<<1, ATTENDEE_CAN_DELETE = 1<<2, ATTENDEE_CAN_ADD = 1<<3, - ATTENDEE_LAST = 1<<4, + ATTENDEE_LAST = 1<<4 }; static EPopupItem context_menu_items[] = { diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index 82fb75564a..b6cbd3e7dc 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -77,7 +77,7 @@ typedef enum { PRIORITY_HIGH, PRIORITY_NORMAL, PRIORITY_LOW, - PRIORITY_UNDEFINED, + PRIORITY_UNDEFINED } TaskEditorPriority; static const int priority_map[] = { diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index d020d5cd4f..bd568e2e6a 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -1195,7 +1195,7 @@ enum { ATTENDEE_CAN_DELEGATE = 1<<1, ATTENDEE_CAN_DELETE = 1<<2, ATTENDEE_CAN_ADD = 1<<3, - ATTENDEE_LAST = 1<<4, + ATTENDEE_LAST = 1<<4 }; static EPopupItem context_menu_items[] = { diff --git a/calendar/gui/e-cal-component-preview.c b/calendar/gui/e-cal-component-preview.c index 01c01be6f9..dec1150ad1 100644 --- a/calendar/gui/e-cal-component-preview.c +++ b/calendar/gui/e-cal-component-preview.c @@ -8,19 +8,11 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. -<<<<<<< HEAD:calendar/gui/e-cal-component-preview.c * * You should have received a copy of the GNU Lesser General Public * License along with the program; if not, see <http://www.gnu.org/licenses/> * * -======= - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see <http://www.gnu.org/licenses/> - * - * ->>>>>>> 23df769955ea54f756a579c19964df87ae6fd5c8:calendar/gui/e-cal-component-preview.c * Authors: * Federico Mena Quintero <federico@ximian.com> * Damon Chaplin <damon@ximian.com> diff --git a/calendar/gui/e-cal-config.h b/calendar/gui/e-cal-config.h index 8af6313b5b..8f27cbd2f2 100644 --- a/calendar/gui/e-cal-config.h +++ b/calendar/gui/e-cal-config.h @@ -47,7 +47,7 @@ struct _ECalConfigClass { enum _e_cal_config_target_t { EC_CONFIG_TARGET_SOURCE, - EC_CONFIG_TARGET_PREFS, + EC_CONFIG_TARGET_PREFS }; typedef struct _ECalConfigTargetSource ECalConfigTargetSource; diff --git a/calendar/gui/e-cal-list-view-config.c b/calendar/gui/e-cal-list-view-config.c index efa8b9b7fb..6c930b1b61 100644 --- a/calendar/gui/e-cal-list-view-config.c +++ b/calendar/gui/e-cal-list-view-config.c @@ -32,7 +32,7 @@ struct _ECalListViewConfigPrivate { /* Property IDs */ enum props { PROP_0, - PROP_VIEW, + PROP_VIEW }; G_DEFINE_TYPE (ECalListViewConfig, e_cal_list_view_config, G_TYPE_OBJECT) diff --git a/calendar/gui/e-cal-menu.h b/calendar/gui/e-cal-menu.h index 30962d9a1a..9c37a6a9ae 100644 --- a/calendar/gui/e-cal-menu.h +++ b/calendar/gui/e-cal-menu.h @@ -39,7 +39,7 @@ typedef struct _ECalMenuClass ECalMenuClass; /* Current target description */ /* Types of popup tagets */ enum _e_cal_menu_target_t { - E_CAL_MENU_TARGET_SELECT, + E_CAL_MENU_TARGET_SELECT }; /** @@ -73,7 +73,7 @@ enum _e_cal_menu_target_select_t { E_CAL_MENU_SELECT_ASSIGNABLE = 1<<10, E_CAL_MENU_SELECT_HASURL = 1<<11, - E_CAL_MENU_SELECT_NOTCOMPLETE = 1<<12, + E_CAL_MENU_SELECT_NOTCOMPLETE = 1<<12 }; typedef struct _ECalMenuTargetSelect ECalMenuTargetSelect; diff --git a/calendar/gui/e-cal-popup.h b/calendar/gui/e-cal-popup.h index 34874efdba..185e9877f0 100644 --- a/calendar/gui/e-cal-popup.h +++ b/calendar/gui/e-cal-popup.h @@ -50,7 +50,7 @@ struct _ECalendarView; enum _e_cal_popup_target_t { E_CAL_POPUP_TARGET_SELECT, E_CAL_POPUP_TARGET_SOURCE, - E_CAL_POPUP_TARGET_ATTACHMENTS, + E_CAL_POPUP_TARGET_ATTACHMENTS }; /** @@ -89,7 +89,7 @@ enum _e_cal_popup_target_select_t { E_CAL_POPUP_SELECT_ACCEPTABLE = 1<<14, E_CAL_POPUP_SELECT_NOTCOMPLETE = 1<<15, E_CAL_POPUP_SELECT_NOSAVESCHEDULES = 1<<16, - E_CAL_POPUP_SELECT_COMPLETE = 1<<17, + E_CAL_POPUP_SELECT_COMPLETE = 1<<17 }; /** @@ -121,7 +121,7 @@ enum _e_cal_popup_target_attachments_t { E_CAL_POPUP_ATTACHMENTS_MANY = 1<<1, /* one or more selected */ E_CAL_POPUP_ATTACHMENTS_MODIFY = 1<<2, /* check for modify operation */ E_CAL_POPUP_ATTACHMENTS_MULTIPLE = 1<<3, - E_CAL_POPUP_ATTACHMENTS_IMAGE = 1<<4, + E_CAL_POPUP_ATTACHMENTS_IMAGE = 1<<4 }; typedef struct _ECalPopupTargetSelect ECalPopupTargetSelect; diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index a888e04c02..4a3bd2e75c 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -79,7 +79,7 @@ static void open_event_with_flags (ECalendarView *cal_view, ECal *client, icalco /* Property IDs */ enum props { PROP_0, - PROP_MODEL, + PROP_MODEL }; /* FIXME Why are we emitting these event signals here? Can't the model just be listened to? */ diff --git a/calendar/gui/e-cell-date-edit-config.c b/calendar/gui/e-cell-date-edit-config.c index e2a9cc6eb2..5be8569bd3 100644 --- a/calendar/gui/e-cell-date-edit-config.c +++ b/calendar/gui/e-cell-date-edit-config.c @@ -35,7 +35,7 @@ struct _ECellDateEditConfigPrivate { /* Property IDs */ enum props { PROP_0, - PROP_CELL, + PROP_CELL }; G_DEFINE_TYPE (ECellDateEditConfig, e_cell_date_edit_config, G_TYPE_OBJECT) diff --git a/calendar/gui/e-date-edit-config.c b/calendar/gui/e-date-edit-config.c index 16732305ec..d6fd6cf675 100644 --- a/calendar/gui/e-date-edit-config.c +++ b/calendar/gui/e-date-edit-config.c @@ -32,7 +32,7 @@ struct _EDateEditConfigPrivate { /* Property IDs */ enum props { PROP_0, - PROP_EDIT, + PROP_EDIT }; G_DEFINE_TYPE (EDateEditConfig, e_date_edit_config, G_TYPE_OBJECT) diff --git a/calendar/gui/e-day-view-config.c b/calendar/gui/e-day-view-config.c index b7acf6541f..44156bf18e 100644 --- a/calendar/gui/e-day-view-config.c +++ b/calendar/gui/e-day-view-config.c @@ -32,7 +32,7 @@ struct _EDayViewConfigPrivate { /* Property IDs */ enum props { PROP_0, - PROP_VIEW, + PROP_VIEW }; G_DEFINE_TYPE (EDayViewConfig, e_day_view_config, G_TYPE_OBJECT) |