- fix build with gcc2, yes, '2', not '4'. :-)

based on a diff from sebastian reitenbach
This commit is contained in:
jasper 2010-06-07 12:47:28 +00:00
parent 330b48bd07
commit 5c868c2c98

View File

@ -0,0 +1,33 @@
$OpenBSD: patch-gio_tests_memory-output-stream_c,v 1.1 2010/06/07 12:47:28 jasper Exp $
Fix build with GCC2.
--- gio/tests/memory-output-stream.c.orig Mon Jun 7 10:04:19 2010
+++ gio/tests/memory-output-stream.c Mon Jun 7 10:06:51 2010
@@ -92,6 +92,10 @@ test_properties (void)
GDataOutputStream *o;
int i;
GError *error = NULL;
+ gsize data_size_fun;
+ gsize data_size_prop;
+ gpointer data_fun;
+ gpointer data_prop;
g_test_bug ("605733");
@@ -107,13 +111,11 @@ test_properties (void)
g_assert_no_error (error);
}
- gsize data_size_fun = g_memory_output_stream_get_data_size (G_MEMORY_OUTPUT_STREAM (mo));
- gsize data_size_prop;
+ data_size_fun = g_memory_output_stream_get_data_size (G_MEMORY_OUTPUT_STREAM (mo));
g_object_get (mo, "data-size", &data_size_prop, NULL);
g_assert_cmpint (data_size_fun, ==, data_size_prop);
- gpointer data_fun = g_memory_output_stream_get_data (G_MEMORY_OUTPUT_STREAM (mo));
- gpointer data_prop;
+ data_fun = g_memory_output_stream_get_data (G_MEMORY_OUTPUT_STREAM (mo));
g_object_get (mo, "data", &data_prop, NULL);
g_assert_cmphex (data_fun, ==, data_prop);