Fix warnings.

* gmarkup.c: Fix warnings.

* guniprop.c, gunidecomp.c: Make warnings go away by using
GPOINTER_TO_INT() instead of (int).

* gcompletion.[ch]: Add g_completion_set_compare(),
to allow (for example) using case-insensitive completion.

* gobject/gsignal.c: Fix warnings about possible use of uninitialized
variables, and fix logic that would leave 'node' unset in cases
that it might be used in.

* gobject/glib-genmarshal.c: Fix warning about printf format.
This commit is contained in:
Elliot Lee
2000-11-28 23:44:21 +00:00
parent 55c7329d51
commit 790a7bd3be
22 changed files with 142 additions and 25 deletions

View File

@@ -1,3 +1,11 @@
2000-11-28 Elliot Lee <sopwith@redhat.com>
* gsignal.c: Fix warnings about possible use of uninitialized
variables, and fix logic that would leave 'node' unset in cases
that it might be used in.
* glib-genmarshal.c: Fix warning about printf format.
2000-11-28 Tor Lillqvist <tml@iki.fi>
* gboxed.c: Include <string.h> for memset ().

View File

@@ -201,7 +201,7 @@ pad (const gchar *string)
{
g_free (buffer);
buffer = g_strdup_printf ("%s ", string);
g_warning ("overfull string (%u bytes) for padspace", strlen (string));
g_warning ("overfull string (%lu bytes) for padspace", strlen (string));
return buffer;
}

View File

@@ -376,9 +376,9 @@ handlers_find (gpointer instance,
{
HandlerList *hlist = handler_list_lookup (signal_id, instance);
Handler *handler;
SignalNode *node;
SignalNode *node = NULL;
if (mask & G_SIGNAL_MATCH_FUNC)
if (!(mask & G_SIGNAL_MATCH_FUNC))
{
node = LOOKUP_SIGNAL_NODE (signal_id);
if (!node || !node->c_marshaller)
@@ -413,7 +413,7 @@ handlers_find (gpointer instance,
for (i = 0; i < hlbsa->n_nodes; i++)
{
HandlerList *hlist = g_bsearch_array_get_nth (hlbsa, i);
SignalNode *node;
SignalNode *node = NULL;
Handler *handler;
if (!(mask & G_SIGNAL_MATCH_FUNC))