[glib: 6/7] Fix missing initializer warning in gobject/tests/dynamictests.c:test_module_get_type()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/7] Fix missing initializer warning in gobject/tests/dynamictests.c:test_module_get_type()
- Date: Wed, 16 Dec 2020 11:45:43 +0000 (UTC)
commit 8fb696e00337670a822727c7c4f8c032c6088043
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 17:46:01 2020 +0100
Fix missing initializer warning in gobject/tests/dynamictests.c:test_module_get_type()
gobject/tests/dynamictests.c: In function ‘test_module_get_type’:
gobject/tests/dynamictests.c:97:7: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka
‘const struct _GTypeInfo’}
97 | };
| ^
In file included from gobject/gobject.h:24,
from gobject/gbinding.h:29,
from glib/glib-object.h:22,
from gobject/tests/dynamictests.c:23:
gobject/gtype.h:1063:26: note: ‘value_table’ declared here
1063 | const GTypeValueTable *value_table;
| ^~~~~~~~~~~
gobject/tests/dynamictests.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gobject/tests/dynamictests.c b/gobject/tests/dynamictests.c
index 7a9e9e487..06e1e01c1 100644
--- a/gobject/tests/dynamictests.c
+++ b/gobject/tests/dynamictests.c
@@ -93,7 +93,8 @@ static GType test_module_get_type (void)
NULL,
sizeof (TestModule),
0,
- (GInstanceInitFunc)NULL
+ (GInstanceInitFunc)NULL,
+ NULL,
};
object_type = g_type_register_static (G_TYPE_TYPE_MODULE, "TestModule", &object_info, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]