[gnome-pilot] Fix compiler warnings. Now we can compile with -Werror again.
- From: Matthew Charles Davey <mcdavey src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-pilot] Fix compiler warnings. Now we can compile with -Werror again.
- Date: Mon, 9 Aug 2010 08:10:40 +0000 (UTC)
commit 11cda8de0ba7590ca6c12a4c1fd02ab7f4a3c408
Author: Matt Davey <mcdavey mrao cam ac uk>
Date: Sun Aug 8 16:54:11 2010 +0100
Fix compiler warnings. Now we can compile with -Werror again.
ChangeLog | 3 +++
gpilotd/gnome-pilot-client.gob | 2 +-
utils/gpilotd-client.c | 10 +++++-----
3 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b533fe4..aae5d6c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,10 +16,13 @@
* backup_conduit.c: fix some printf type warnings.
* gpilotd/gnome-pilot-client.gob: use a timeout for Noop, so applet
doesn't wait ages before getting a CONNECTED signal.
+ Also, fix a couple of compiler warnings.
+ * utils/gpilotd-client.c: Fix a couple of compiler warnings.
* Makefile.am: remove reference to idl/OChangelog
* po/POTFILES.in: update file list in line with dbus branch changes
* .gitignore: ignore po/gnome-pilot.pot
+
2010-08-07 Matt Davey <mcdavey mrao cam ac uk>
* #619315 Thanks to Matthew Barnes. Handle new Evolution
directory locations in evo >= 2.31.6.
diff --git a/gpilotd/gnome-pilot-client.gob b/gpilotd/gnome-pilot-client.gob
index 9aed534..a9af673 100644
--- a/gpilotd/gnome-pilot-client.gob
+++ b/gpilotd/gnome-pilot-client.gob
@@ -78,7 +78,7 @@ class Gnome:Pilot:Client from Gtk:Object {
public DBusGProxy *proxy;
class_init (class) {
- GtkObjectClass *object_class = GTK_OBJECT_CLASS (class);
+/* GtkObjectClass *object_class = GTK_OBJECT_CLASS (class);*/
}
init (self) {
diff --git a/utils/gpilotd-client.c b/utils/gpilotd-client.c
index dd1aecd..36ae558 100644
--- a/utils/gpilotd-client.c
+++ b/utils/gpilotd-client.c
@@ -186,7 +186,7 @@ user_info (GnomePilotClient *gpc,
{
g_message ("Pilot in cradle %s :", cradle);
g_message ("User name %s", userinfo->username);
- g_message ("User id %d", userinfo->userID);
+ g_message ("User id %lu", userinfo->userID);
}
@@ -196,12 +196,12 @@ system_info (GnomePilotClient *gpc,
const GNOME_Pilot_SysInfo *sysinfo)
{
g_message ("Pilot in cradle %s :", cradle);
- g_message ("%dKB ROM", sysinfo->romSize);
- g_message ("%dKB RAM", sysinfo->ramSize);
- g_message ("%dKB RAM free", sysinfo->ramFree);
+ g_message ("%ldKB ROM", sysinfo->romSize);
+ g_message ("%ldKB RAM", sysinfo->ramSize);
+ g_message ("%ldKB RAM free", sysinfo->ramFree);
g_message ("Systemboard is ``%s''", sysinfo->name);
g_message ("Manufacturer is ``%s''", sysinfo->manufacturer);
- g_message ("Creation/Version is %d/%d", sysinfo->creation, sysinfo->romVersion);
+ g_message ("Creation/Version is %ld/%ld", sysinfo->creation, sysinfo->romVersion);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]