openbsd-ports/devel/json-glib/patches/patch-tests_test-serialize-full_c
2009-04-14 06:48:13 +00:00

17 lines
601 B
Plaintext

$OpenBSD: patch-tests_test-serialize-full_c,v 1.1 2009/04/14 06:48:13 jasper Exp $
Fix regression tests:
http://bugzilla.openedhand.com/show_bug.cgi?id=1393
--- tests/test-serialize-full.c.orig Tue Apr 14 08:45:46 2009
+++ tests/test-serialize-full.c Tue Apr 14 08:46:00 2009
@@ -92,7 +92,7 @@ test_enum_get_type (void)
if (G_UNLIKELY (e_type == 0))
{
- const GEnumValue values[] = {
+ static const GEnumValue values[] = {
{ TEST_ENUM_FOO, "TEST_ENUM_FOO", "foo" },
{ TEST_ENUM_BAR, "TEST_ENUM_BAR", "bar" },
{ TEST_ENUM_BAZ, "TEST_ENUM_BAZ", "baz" },