mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 12:41:50 +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>
|
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
|
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||||
them, since they may also be macros. (#155177, Andrea Campi)
|
them, since they may also be macros. (#155177, Andrea Campi)
|
||||||
|
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2004-10-23 Matthias Clasen <mclasen@redhat.com>
|
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
|
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||||
them, since they may also be macros. (#155177, Andrea Campi)
|
them, since they may also be macros. (#155177, Andrea Campi)
|
||||||
|
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2004-10-23 Matthias Clasen <mclasen@redhat.com>
|
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
|
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||||
them, since they may also be macros. (#155177, Andrea Campi)
|
them, since they may also be macros. (#155177, Andrea Campi)
|
||||||
|
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2004-10-23 Matthias Clasen <mclasen@redhat.com>
|
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
|
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||||
them, since they may also be macros. (#155177, Andrea Campi)
|
them, since they may also be macros. (#155177, Andrea Campi)
|
||||||
|
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2004-10-23 Matthias Clasen <mclasen@redhat.com>
|
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
|
* glib/gnulib/g-gnulib.h: Undef libc functions before defining
|
||||||
them, since they may also be macros. (#155177, Andrea Campi)
|
them, since they may also be macros. (#155177, Andrea Campi)
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ struct _GAsyncQueue
|
|||||||
* Return value: the new #GAsyncQueue.
|
* Return value: the new #GAsyncQueue.
|
||||||
**/
|
**/
|
||||||
GAsyncQueue*
|
GAsyncQueue*
|
||||||
g_async_queue_new ()
|
g_async_queue_new (void)
|
||||||
{
|
{
|
||||||
GAsyncQueue* retval = g_new (GAsyncQueue, 1);
|
GAsyncQueue* retval = g_new (GAsyncQueue, 1);
|
||||||
retval->mutex = g_mutex_new ();
|
retval->mutex = g_mutex_new ();
|
||||||
|
@ -640,7 +640,7 @@ g_atomic_int_add (gint *atomic,
|
|||||||
#endif /* ATOMIC_INT_CMP_XCHG */
|
#endif /* ATOMIC_INT_CMP_XCHG */
|
||||||
|
|
||||||
void
|
void
|
||||||
_g_atomic_thread_init ()
|
_g_atomic_thread_init (void)
|
||||||
{
|
{
|
||||||
#ifdef DEFINE_WITH_MUTEXES
|
#ifdef DEFINE_WITH_MUTEXES
|
||||||
g_atomic_mutex = g_mutex_new ();
|
g_atomic_mutex = g_mutex_new ();
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|
||||||
GDate*
|
GDate*
|
||||||
g_date_new ()
|
g_date_new (void)
|
||||||
{
|
{
|
||||||
GDate *d = g_new0 (GDate, 1); /* happily, 0 is the invalid flag for everything. */
|
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,
|
g_io_channel_get_line_term (GIOChannel *channel,
|
||||||
gint *length)
|
gint *length)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (channel != NULL, 0);
|
g_return_val_if_fail (channel != NULL, NULL);
|
||||||
|
|
||||||
if (length)
|
if (length)
|
||||||
*length = channel->line_term_len;
|
*length = channel->line_term_len;
|
||||||
|
@ -711,7 +711,7 @@ g_main_context_init_pipe (GMainContext *context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
_g_main_thread_init ()
|
_g_main_thread_init (void)
|
||||||
{
|
{
|
||||||
GSList *curr = main_contexts_without_pipe;
|
GSList *curr = main_contexts_without_pipe;
|
||||||
while (curr)
|
while (curr)
|
||||||
@ -732,7 +732,7 @@ _g_main_thread_init ()
|
|||||||
* Return value: the new #GMainContext
|
* Return value: the new #GMainContext
|
||||||
**/
|
**/
|
||||||
GMainContext *
|
GMainContext *
|
||||||
g_main_context_new ()
|
g_main_context_new (void)
|
||||||
{
|
{
|
||||||
GMainContext *context = g_new0 (GMainContext, 1);
|
GMainContext *context = g_new0 (GMainContext, 1);
|
||||||
|
|
||||||
|
@ -629,7 +629,7 @@ g_spawn_command_line_sync (const gchar *command_line,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
gboolean retval;
|
gboolean retval;
|
||||||
gchar **argv = 0;
|
gchar **argv = NULL;
|
||||||
|
|
||||||
g_return_val_if_fail (command_line != NULL, FALSE);
|
g_return_val_if_fail (command_line != NULL, FALSE);
|
||||||
|
|
||||||
@ -675,7 +675,7 @@ g_spawn_command_line_async (const gchar *command_line,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
gboolean retval;
|
gboolean retval;
|
||||||
gchar **argv = 0;
|
gchar **argv = NULL;
|
||||||
|
|
||||||
g_return_val_if_fail (command_line != NULL, FALSE);
|
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. */
|
/* Return a pointer to the contents of the charset.alias file. */
|
||||||
const char *
|
const char *
|
||||||
_g_locale_get_charset_aliases ()
|
_g_locale_get_charset_aliases (void)
|
||||||
{
|
{
|
||||||
const char *cp;
|
const char *cp;
|
||||||
|
|
||||||
@ -246,7 +246,7 @@ _g_locale_get_charset_aliases ()
|
|||||||
name. */
|
name. */
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
_g_locale_charset_raw ()
|
_g_locale_charset_raw (void)
|
||||||
{
|
{
|
||||||
const char *codeset;
|
const char *codeset;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user