From 1809baa59ed96fbefda04257d0d52eb71fa9e95b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 8 Dec 2014 12:36:51 +1000 Subject: [PATCH] tablet: initialize all unused dispatch callbacks to NULL evdev-tablet.c:545:1: warning: missing initializer for field 'device_added' of 'struct evdev_dispatch_interface' [-Wmissing-field-initializers] and similar Signed-off-by: Peter Hutterer --- src/evdev-tablet.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index ff5f7373..6f18f9a0 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -541,7 +541,12 @@ tablet_destroy(struct evdev_dispatch *dispatch) static struct evdev_dispatch_interface tablet_interface = { tablet_process, - tablet_destroy + tablet_destroy, + NULL, /* device_added */ + NULL, /* device_removed */ + NULL, /* device_suspended */ + NULL, /* device_resumed */ + NULL, /* tag_device */ }; static int