summaryrefslogtreecommitdiff
path: root/tests/testglib.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2001-07-11 20:08:50 +0000
committerDarin Adler <darin@src.gnome.org>2001-07-11 20:08:50 +0000
commit624a3c9689a9538af7df04aab389423edc82b51a (patch)
treeffd7dbbba12f3cb9d083792d4a6f8143936f37fd /tests/testglib.c
parentbe44b99002995bbde8105357f910d6c99f99d422 (diff)
Add some generated files.
* .cvsignore: Add some generated files. * glib/gmain.c: (g_main_context_iterate): Comment out cruft after #endif to avoid gcc warning. * gmodule/gmodule.c: (g_module_set_error_unduped): Remove const from type to avoid gcc warning. * gobject/gsignal.c: (g_signal_emitv): ifdef variable used only if G_ENABLE_DEBUG to avoid gcc warning. * gobject/gtype.c: (type_iface_vtable_init_Wm), (type_iface_vtable_finalize_Wm): ifdef call needed only if !G_DISABLE_ASSERT to avoid gcc warning. * tests/testglib.c: (main): ifdef call needed only if !G_DISABLE_ASSERT to avoid gcc warning. Maybe later we should make the test to #undef G_DISABLE_ASSERT. * tests/unicode-collate.c: Add include of <string.h> to avoid gcc warning.
Diffstat (limited to 'tests/testglib.c')
-rw-r--r--tests/testglib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testglib.c b/tests/testglib.c
index 541849ec3..bc25d4122 100644
--- a/tests/testglib.c
+++ b/tests/testglib.c
@@ -385,12 +385,14 @@ main (int argc,
};
guint n_skip_root_checks = G_N_ELEMENTS (skip_root_checks);
+#ifndef G_DISABLE_ASSERT
guint16 gu16t1 = 0x44afU, gu16t2 = 0xaf44U;
guint32 gu32t1 = 0x02a7f109U, gu32t2 = 0x09f1a702U;
#ifdef G_HAVE_GINT64
guint64 gu64t1 = G_GINT64_CONSTANT(0x1d636b02300a7aa7U),
gu64t2 = G_GINT64_CONSTANT(0xa77a0a30026b631dU);
#endif
+#endif
const char hello[] = "Hello, World";
const int hellolen = sizeof (hello) - 1;
int fd;