Remove warning about g_print, etc, encoding.

Thu Mar 28 18:22:53 2002  Owen Taylor  <otaylor@redhat.com>

        * README: Remove warning about g_print, etc, encoding.

        * NEWS: Updates.

        * glib/gmessages.c (g_log_default_handler): Use %lu
        (plus a cast) when printing out pid_t arguments.
        (#76770, Morten Welinder)

        * glib/gstrfuncs.c (g_strdup_vprintf): Check the
        result of vasprintf(), return NULL on failure.
        (#76802, Akira Tagoh)

        * tests/testglib.c (TEST): Supress a warning with
        some GCC versions.
This commit is contained in:
Owen Taylor
2002-03-28 23:24:23 +00:00
committed by Owen Taylor
parent f404089654
commit 90d93042c2
12 changed files with 154 additions and 14 deletions

View File

@@ -50,12 +50,14 @@
static int array[10000];
static gboolean failed = FALSE;
/* We write (m ? m : "") even in the m != NULL case to suppress a warning with GCC-3.1
*/
#define TEST(m,cond) G_STMT_START { failed = !(cond); \
if (failed) \
{ if (!m) \
g_print ("\n(%s:%d) failed for: %s\n", __FILE__, __LINE__, ( # cond )); \
else \
g_print ("\n(%s:%d) failed for: %s: (%s)\n", __FILE__, __LINE__, ( # cond ), (gchar*)m); \
g_print ("\n(%s:%d) failed for: %s: (%s)\n", __FILE__, __LINE__, ( # cond ), (gchar*)(m ? m : "")); \
} \
else \
g_print ("."); fflush (stdout); \