mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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:
@@ -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 ().
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user