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

@@ -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))