[glib: 2/12] Fix missing field initializer warning in glib/tests/option-argv0.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/12] Fix missing field initializer warning in glib/tests/option-argv0.c
- Date: Thu, 13 May 2021 12:04:47 +0000 (UTC)
commit f2d14a8770538b5482e4d5075dd050ffeb68ddf8
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Wed Apr 28 22:51:17 2021 +0200
Fix missing field initializer warning in glib/tests/option-argv0.c
glib/tests/option-argv0.c:38:14: warning: missing field 'short_name' initializer
{ NULL } };
^
glib/tests/option-argv0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/option-argv0.c b/glib/tests/option-argv0.c
index ce3609743..37ac44a9f 100644
--- a/glib/tests/option-argv0.c
+++ b/glib/tests/option-argv0.c
@@ -35,7 +35,7 @@ test_platform_argv0 (void)
gboolean arg;
GOptionEntry entries [] =
{ { "test", 't', 0, G_OPTION_ARG_STRING, &arg, NULL, NULL },
- { NULL } };
+ G_OPTION_ENTRY_NULL };
const gchar * const expected_prgnames[] =
{
"option-argv0",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]