dbus/glib dbus-binding-tool-glib.c, 1.6, 1.7 dbus-glib-tool.c, 1.12, 1.13

Havoc Pennington hp at freedesktop.org
Sun Apr 10 09:51:00 EST 2005


Update of /cvs/dbus/dbus/glib
In directory gabe:/tmp/cvs-serv3903/glib

Modified Files:
	dbus-binding-tool-glib.c dbus-glib-tool.c 
Log Message:
2005-04-09  Havoc Pennington  <hp at redhat.com>

	* dbus/dbus-message-util.c (_dbus_message_test): fix signedness warning

	* glib/dbus-glib-tool.c (main): fix warning

	* glib/dbus-binding-tool-glib.c (generate_glue): fix warning

	* dbus/dbus-connection.c (dbus_connection_read_write_dispatch):
	add a new function that can be used in simple applications that
	don't have a main loop and are willing to block



Index: dbus-binding-tool-glib.c
===================================================================
RCS file: /cvs/dbus/dbus/glib/dbus-binding-tool-glib.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- dbus-binding-tool-glib.c	12 Mar 2005 20:07:21 -0000	1.6
+++ dbus-binding-tool-glib.c	9 Apr 2005 23:50:58 -0000	1.7
@@ -383,6 +383,9 @@
 		  direction = 'O';
 		  break;
 		case ARG_INVALID:
+                default:
+                  g_assert_not_reached ();
+                  direction = 0; /* silence gcc */
 		  break;
 		}
 	      g_string_append_c (object_introspection_data_blob, direction);

Index: dbus-glib-tool.c
===================================================================
RCS file: /cvs/dbus/dbus/glib/dbus-glib-tool.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- dbus-glib-tool.c	12 Mar 2005 20:07:21 -0000	1.12
+++ dbus-glib-tool.c	9 Apr 2005 23:50:58 -0000	1.13
@@ -385,6 +385,7 @@
   else
     {
       channel = g_io_channel_unix_new (fileno (stdout));
+      output_file_tmp = NULL; /* silence gcc */
     }
   if (!g_io_channel_set_encoding (channel, NULL, &error))
     lose_gerror (_("Couldn't set channel encoding to NULL"), error);



More information about the dbus-commit mailing list