diff options
author | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2020-11-17 22:52:19 +0100 |
---|---|---|
committer | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2021-02-10 20:41:16 +0100 |
commit | a54ebd68603ff515fd68adc6504f7787699b4997 (patch) | |
tree | 0b3e9fb20e684656b3d0e10880902ca36aa61591 | |
parent | 85f24921114942cc3f1efcc7270e2929a3a18378 (diff) | |
download | glib-a54ebd68603ff515fd68adc6504f7787699b4997.tar.gz |
Fix missing initializer warning in gio/gio-tool-monitor.c
gio/gio-tool-monitor.c:48:3: error: missing initializer for field ‘description’ of ‘GOptionEntry’ {aka ‘const struct _GOptionEntry’}
48 | { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &watch_default },
| ^
-rw-r--r-- | gio/gio-tool-monitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gio/gio-tool-monitor.c b/gio/gio-tool-monitor.c index f2ffb3387..73ee1b12e 100644 --- a/gio/gio-tool-monitor.c +++ b/gio/gio-tool-monitor.c @@ -45,7 +45,8 @@ static const GOptionEntry entries[] = { N_("Report moves and renames as simple deleted/created events"), NULL }, { "mounts", 'm', 0, G_OPTION_ARG_NONE, &mounts, N_("Watch for mount events"), NULL }, - { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &watch_default }, + { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &watch_default, + NULL, NULL }, { NULL } }; |