[glib] Init padding to NULL to avoid a missing initializer warning
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Init padding to NULL to avoid a missing initializer warning
- Date: Sun, 24 Mar 2013 15:28:19 +0000 (UTC)
commit beae47d838d7e7912ea7716ba4177f286c95a270
Author: Guido Günther <agx sigxcpu org>
Date: Sat Mar 23 12:41:15 2013 +0100
Init padding to NULL to avoid a missing initializer warning
like
sessionmanager-presence-generated.c:920:1: warning: missing initializer [-Wmissing-field-initializers]
sessionmanager-presence-generated.c:920:1: warning: (near initialization for
‘_org_gnome_session_manager_presence_skeleton_vtable.padding’) [-Wmissing-field-initializers]
https://bugzilla.gnome.org/review?bug=696108
gio/gdbus-2.0/codegen/codegen.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbus-2.0/codegen/codegen.py b/gio/gdbus-2.0/codegen/codegen.py
index 2f5ba83..a1541f7 100644
--- a/gio/gdbus-2.0/codegen/codegen.py
+++ b/gio/gdbus-2.0/codegen/codegen.py
@@ -2221,7 +2221,8 @@ class CodeGenerator:
'{\n'
' _%s_skeleton_handle_method_call,\n'
' _%s_skeleton_handle_get_property,\n'
- ' _%s_skeleton_handle_set_property\n'
+ ' _%s_skeleton_handle_set_property,\n'
+ ' {NULL}\n'
'};\n'
'\n'%(i.name_lower, i.name_lower, i.name_lower, i.name_lower))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]