mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Apply a patch to fix sparse warnings. (#154696, Kjartan Maraas)
2004-10-23 Matthias Clasen <mclasen@redhat.com> * glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c, glib/giochannel.c, glib/gmain.c, glib/gspawn.c, glib/libcharset/localcharset.c: Apply a patch to fix sparse warnings. (#154696, Kjartan Maraas)
This commit is contained in:
parent
034fef999e
commit
2e7514d052
@ -1,5 +1,10 @@
|
||||
2004-10-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
|
||||
glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
|
||||
glib/libcharset/localcharset.c: Apply a patch to fix
|
||||
sparse warnings. (#154696, Kjartan Maraas)
|
||||
|
||||
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||
them, since they may also be macros. (#155177, Andrea Campi)
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
2004-10-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
|
||||
glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
|
||||
glib/libcharset/localcharset.c: Apply a patch to fix
|
||||
sparse warnings. (#154696, Kjartan Maraas)
|
||||
|
||||
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||
them, since they may also be macros. (#155177, Andrea Campi)
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
2004-10-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
|
||||
glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
|
||||
glib/libcharset/localcharset.c: Apply a patch to fix
|
||||
sparse warnings. (#154696, Kjartan Maraas)
|
||||
|
||||
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||
them, since they may also be macros. (#155177, Andrea Campi)
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
2004-10-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
|
||||
glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
|
||||
glib/libcharset/localcharset.c: Apply a patch to fix
|
||||
sparse warnings. (#154696, Kjartan Maraas)
|
||||
|
||||
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||
them, since they may also be macros. (#155177, Andrea Campi)
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
2004-10-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
|
||||
glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
|
||||
glib/libcharset/localcharset.c: Apply a patch to fix
|
||||
sparse warnings. (#154696, Kjartan Maraas)
|
||||
|
||||
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||
them, since they may also be macros. (#155177, Andrea Campi)
|
||||
|
||||
|
@ -47,7 +47,7 @@ struct _GAsyncQueue
|
||||
* Return value: the new #GAsyncQueue.
|
||||
**/
|
||||
GAsyncQueue*
|
||||
g_async_queue_new ()
|
||||
g_async_queue_new (void)
|
||||
{
|
||||
GAsyncQueue* retval = g_new (GAsyncQueue, 1);
|
||||
retval->mutex = g_mutex_new ();
|
||||
|
@ -640,7 +640,7 @@ g_atomic_int_add (gint *atomic,
|
||||
#endif /* ATOMIC_INT_CMP_XCHG */
|
||||
|
||||
void
|
||||
_g_atomic_thread_init ()
|
||||
_g_atomic_thread_init (void)
|
||||
{
|
||||
#ifdef DEFINE_WITH_MUTEXES
|
||||
g_atomic_mutex = g_mutex_new ();
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include <locale.h>
|
||||
|
||||
GDate*
|
||||
g_date_new ()
|
||||
g_date_new (void)
|
||||
{
|
||||
GDate *d = g_new0 (GDate, 1); /* happily, 0 is the invalid flag for everything. */
|
||||
|
||||
|
@ -707,7 +707,7 @@ G_CONST_RETURN gchar*
|
||||
g_io_channel_get_line_term (GIOChannel *channel,
|
||||
gint *length)
|
||||
{
|
||||
g_return_val_if_fail (channel != NULL, 0);
|
||||
g_return_val_if_fail (channel != NULL, NULL);
|
||||
|
||||
if (length)
|
||||
*length = channel->line_term_len;
|
||||
|
@ -711,7 +711,7 @@ g_main_context_init_pipe (GMainContext *context)
|
||||
}
|
||||
|
||||
void
|
||||
_g_main_thread_init ()
|
||||
_g_main_thread_init (void)
|
||||
{
|
||||
GSList *curr = main_contexts_without_pipe;
|
||||
while (curr)
|
||||
@ -732,7 +732,7 @@ _g_main_thread_init ()
|
||||
* Return value: the new #GMainContext
|
||||
**/
|
||||
GMainContext *
|
||||
g_main_context_new ()
|
||||
g_main_context_new (void)
|
||||
{
|
||||
GMainContext *context = g_new0 (GMainContext, 1);
|
||||
|
||||
|
@ -629,7 +629,7 @@ g_spawn_command_line_sync (const gchar *command_line,
|
||||
GError **error)
|
||||
{
|
||||
gboolean retval;
|
||||
gchar **argv = 0;
|
||||
gchar **argv = NULL;
|
||||
|
||||
g_return_val_if_fail (command_line != NULL, FALSE);
|
||||
|
||||
@ -675,7 +675,7 @@ g_spawn_command_line_async (const gchar *command_line,
|
||||
GError **error)
|
||||
{
|
||||
gboolean retval;
|
||||
gchar **argv = 0;
|
||||
gchar **argv = NULL;
|
||||
|
||||
g_return_val_if_fail (command_line != NULL, FALSE);
|
||||
|
||||
|
@ -110,7 +110,7 @@ static const char * volatile charset_aliases;
|
||||
|
||||
/* Return a pointer to the contents of the charset.alias file. */
|
||||
const char *
|
||||
_g_locale_get_charset_aliases ()
|
||||
_g_locale_get_charset_aliases (void)
|
||||
{
|
||||
const char *cp;
|
||||
|
||||
@ -246,7 +246,7 @@ _g_locale_get_charset_aliases ()
|
||||
name. */
|
||||
|
||||
const char *
|
||||
_g_locale_charset_raw ()
|
||||
_g_locale_charset_raw (void)
|
||||
{
|
||||
const char *codeset;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user