diff options
author | Jason Gerecke <jason.gerecke@wacom.com> | 2022-02-19 12:10:18 -0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-02-22 10:41:51 +1000 |
commit | d9e92778ccc89bec74e361f8d4fcc7c24002d2bc (patch) | |
tree | 9feb8a784b58ecbdf4dd7eb3a41853ca0e309bf6 | |
parent | df632685d02939957bebc61c4df5617652ce608e (diff) | |
download | xf86-input-wacom-d9e92778ccc89bec74e361f8d4fcc7c24002d2bc.tar.gz |
wacom-record: Change syntax for null struct initalization
Avoid a -Wmissing-field-initializers warning from Clang, which apparently
recognizes `{ 0 }` and `{ }` as valid patterns, but not `{ NULL }`.
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
-rw-r--r-- | tools/wacom-record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/wacom-record.c b/tools/wacom-record.c index 77d9aa4..395282b 100644 --- a/tools/wacom-record.c +++ b/tools/wacom-record.c @@ -44,7 +44,7 @@ static GOptionEntry opts[] = { "options", 0, 0, G_OPTION_ARG_STRING, &driver_options, "Driver options in the form \"Foo=bar,Baz=bat\"", NULL }, { "grab", 0, 0, G_OPTION_ARG_NONE, &grab_device, "Grab the device while recording", NULL }, { "evdev", 0, 0, G_OPTION_ARG_NONE, &log_evdev, "Log evdev events", NULL }, - { NULL }, + { 0 }, }; static void log_message(WacomDevice *device, const char *type, const char *message) |