[glib: 1/2] Use G_OPTION_ENTRY_NULL to avoid missing initializer warnings




commit e952248dc2dcff1fa353ddef4034c34222f108ab
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Thu May 13 20:16:46 2021 +0000

    Use G_OPTION_ENTRY_NULL to avoid missing initializer warnings

 gio/gapplication.c                        | 14 +++++++++-----
 gio/gdbus-tool.c                          | 12 ++++++------
 gio/gio-tool-launch.c                     |  2 +-
 gio/gio-tool-list.c                       |  2 +-
 gio/gio-tool-mime.c                       |  2 +-
 gio/gio-tool-mkdir.c                      |  2 +-
 gio/gio-tool-monitor.c                    |  2 +-
 gio/gio-tool-mount.c                      |  2 +-
 gio/gio-tool-move.c                       |  2 +-
 gio/gio-tool-open.c                       |  2 +-
 gio/gio-tool-remove.c                     |  2 +-
 gio/gio-tool-rename.c                     |  2 +-
 gio/gio-tool-save.c                       |  2 +-
 gio/gio-tool-set.c                        |  2 +-
 gio/gio-tool-trash.c                      |  2 +-
 gio/gio-tool-tree.c                       |  2 +-
 gio/glib-compile-resources.c              |  2 +-
 gio/tests/echo-server.c                   |  2 +-
 gio/tests/filter-cat.c                    |  2 +-
 gio/tests/gapplication-example-cmdline3.c |  2 +-
 gio/tests/gapplication-example-cmdline4.c |  2 +-
 gio/tests/gdbus-daemon.c                  |  2 +-
 gio/tests/gdbus-example-own-name.c        |  2 +-
 gio/tests/gdbus-example-peer.c            |  2 +-
 gio/tests/gdbus-example-watch-name.c      |  2 +-
 gio/tests/gdbus-example-watch-proxy.c     |  2 +-
 gio/tests/gsubprocess-testprog.c          |  2 +-
 gio/tests/httpd.c                         |  2 +-
 gio/tests/live-g-file.c                   |  2 +-
 gio/tests/resolver.c                      |  2 +-
 gio/tests/send-data.c                     |  2 +-
 tests/gobject/performance-threaded.c      |  2 +-
 tests/gobject/performance.c               |  2 +-
 33 files changed, 46 insertions(+), 42 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index bf4a4cb65..dfdd90eeb 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -543,7 +543,7 @@ g_application_parse_command_line (GApplication   *application,
       GOptionEntry entries[] = {
         { "gapplication-service", '\0', 0, G_OPTION_ARG_NONE, &become_service,
           N_("Enter GApplication service mode (use from D-Bus service files)"), NULL },
-        { NULL }
+        G_OPTION_ENTRY_NULL
       };
 
       g_option_group_add_entries (gapplication_group, entries);
@@ -555,7 +555,7 @@ g_application_parse_command_line (GApplication   *application,
       GOptionEntry entries[] = {
         { "gapplication-app-id", '\0', 0, G_OPTION_ARG_STRING, &app_id,
           N_("Override the application’s ID"), NULL },
-        { NULL }
+        G_OPTION_ENTRY_NULL
       };
 
       g_option_group_add_entries (gapplication_group, entries);
@@ -567,7 +567,7 @@ g_application_parse_command_line (GApplication   *application,
       GOptionEntry entries[] = {
         { "gapplication-replace", '\0', 0, G_OPTION_ARG_NONE, &replace,
           N_("Replace the running instance"), NULL },
-        { NULL }
+        G_OPTION_ENTRY_NULL
       };
 
       g_option_group_add_entries (gapplication_group, entries);
@@ -729,7 +729,11 @@ g_application_add_main_option_entries (GApplication       *application,
 
   for (i = 0; entries[i].long_name; i++)
     {
-      GOptionEntry my_entries[2] = { { NULL }, { NULL } };
+      GOptionEntry my_entries[2] =
+        {
+          G_OPTION_ENTRY_NULL,
+          G_OPTION_ENTRY_NULL
+        };
       my_entries[0] = entries[i];
 
       if (!my_entries[0].arg_data)
@@ -778,7 +782,7 @@ g_application_add_main_option (GApplication *application,
   gchar *dup_string;
   GOptionEntry my_entry[2] = {
     { NULL, short_name, flags, arg, NULL, NULL, NULL },
-    { NULL }
+    G_OPTION_ENTRY_NULL
   };
 
   g_return_if_fail (G_IS_APPLICATION (application));
diff --git a/gio/gdbus-tool.c b/gio/gdbus-tool.c
index dac01b763..f44253804 100644
--- a/gio/gdbus-tool.c
+++ b/gio/gdbus-tool.c
@@ -403,7 +403,7 @@ static const GOptionEntry connection_entries[] =
   { "system", 'y', 0, G_OPTION_ARG_NONE, &opt_connection_system, N_("Connect to the system bus"), NULL},
   { "session", 'e', 0, G_OPTION_ARG_NONE, &opt_connection_session, N_("Connect to the session bus"), NULL},
   { "address", 'a', 0, G_OPTION_ARG_STRING, &opt_connection_address, N_("Connect to given D-Bus address"), 
NULL},
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static GOptionGroup *
@@ -593,7 +593,7 @@ static const GOptionEntry emit_entries[] =
   { "dest", 'd', 0, G_OPTION_ARG_STRING, &opt_emit_dest, N_("Optional destination for signal (unique 
name)"), NULL},
   { "object-path", 'o', 0, G_OPTION_ARG_STRING, &opt_emit_object_path, N_("Object path to emit signal on"), 
NULL},
   { "signal", 's', 0, G_OPTION_ARG_STRING, &opt_emit_signal, N_("Signal and interface name"), NULL},
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static gboolean
@@ -894,7 +894,7 @@ static const GOptionEntry call_entries[] =
   { "object-path", 'o', 0, G_OPTION_ARG_STRING, &opt_call_object_path, N_("Object path to invoke method 
on"), NULL},
   { "method", 'm', 0, G_OPTION_ARG_STRING, &opt_call_method, N_("Method and interface name"), NULL},
   { "timeout", 't', 0, G_OPTION_ARG_INT, &opt_call_timeout, N_("Timeout in seconds"), NULL},
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static gboolean
@@ -1688,7 +1688,7 @@ static const GOptionEntry introspect_entries[] =
   { "xml", 'x', 0, G_OPTION_ARG_NONE, &opt_introspect_xml, N_("Print XML"), NULL},
   { "recurse", 'r', 0, G_OPTION_ARG_NONE, &opt_introspect_recurse, N_("Introspect children"), NULL},
   { "only-properties", 'p', 0, G_OPTION_ARG_NONE, &opt_introspect_only_properties, N_("Only print 
properties"), NULL},
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static gboolean
@@ -1984,7 +1984,7 @@ static const GOptionEntry monitor_entries[] =
 {
   { "dest", 'd', 0, G_OPTION_ARG_STRING, &opt_monitor_dest, N_("Destination name to monitor"), NULL},
   { "object-path", 'o', 0, G_OPTION_ARG_STRING, &opt_monitor_object_path, N_("Object path to monitor"), 
NULL},
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static gboolean
@@ -2195,7 +2195,7 @@ static const GOptionEntry wait_entries[] =
   { "timeout", 't', 0, G_OPTION_ARG_INT64, &opt_wait_timeout_secs,
     N_("Timeout to wait for before exiting with an error (seconds); 0 for "
        "no timeout (default)"), "SECS" },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static void
diff --git a/gio/gio-tool-launch.c b/gio/gio-tool-launch.c
index 08c91c68a..edc2cf226 100644
--- a/gio/gio-tool-launch.c
+++ b/gio/gio-tool-launch.c
@@ -30,7 +30,7 @@
 #include "gio-tool.h"
 
 static const GOptionEntry entries[] = {
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 int
diff --git a/gio/gio-tool-list.c b/gio/gio-tool-list.c
index 9f52d158d..8e9409f10 100644
--- a/gio/gio-tool-list.c
+++ b/gio/gio-tool-list.c
@@ -39,7 +39,7 @@ static const GOptionEntry entries[] = {
   { "nofollow-symlinks", 'n', 0, G_OPTION_ARG_NONE, &nofollow_symlinks, N_("Don’t follow symbolic links"), 
NULL},
   { "print-display-names", 'd', 0, G_OPTION_ARG_NONE, &print_display_names, N_("Print display names"), NULL 
},
   { "print-uris", 'u', 0, G_OPTION_ARG_NONE, &print_uris, N_("Print full URIs"), NULL},
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static void
diff --git a/gio/gio-tool-mime.c b/gio/gio-tool-mime.c
index f564b1fd9..be8a4a9bd 100644
--- a/gio/gio-tool-mime.c
+++ b/gio/gio-tool-mime.c
@@ -30,7 +30,7 @@
 #include "gio-tool.h"
 
 static const GOptionEntry entries[] = {
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static GAppInfo *
diff --git a/gio/gio-tool-mkdir.c b/gio/gio-tool-mkdir.c
index 66bf85894..49cb0c328 100644
--- a/gio/gio-tool-mkdir.c
+++ b/gio/gio-tool-mkdir.c
@@ -29,7 +29,7 @@ static gboolean parent = FALSE;
 
 static const GOptionEntry entries[] = {
   { "parent", 'p', 0, G_OPTION_ARG_NONE, &parent, N_("Create parent directories"), NULL },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 int
diff --git a/gio/gio-tool-monitor.c b/gio/gio-tool-monitor.c
index 73ee1b12e..9eacfbf69 100644
--- a/gio/gio-tool-monitor.c
+++ b/gio/gio-tool-monitor.c
@@ -47,7 +47,7 @@ static const GOptionEntry entries[] = {
       N_("Watch for mount events"), NULL },
   { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &watch_default,
       NULL, NULL },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static void
diff --git a/gio/gio-tool-mount.c b/gio/gio-tool-mount.c
index 67278bb5c..c62426828 100644
--- a/gio/gio-tool-mount.c
+++ b/gio/gio-tool-mount.c
@@ -75,7 +75,7 @@ static const GOptionEntry entries[] =
   { "tcrypt-pim", 0, 0, G_OPTION_ARG_INT, &tcrypt_pim, N_("The numeric PIM when unlocking a VeraCrypt 
volume"), N_("PIM")},
   { "tcrypt-hidden", 0, 0, G_OPTION_ARG_NONE, &tcrypt_hidden, N_("Mount a TCRYPT hidden volume"), NULL},
   { "tcrypt-system", 0, 0, G_OPTION_ARG_NONE, &tcrypt_system, N_("Mount a TCRYPT system volume"), NULL},
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static char *
diff --git a/gio/gio-tool-move.c b/gio/gio-tool-move.c
index 5755f59d4..9be51bcd8 100644
--- a/gio/gio-tool-move.c
+++ b/gio/gio-tool-move.c
@@ -40,7 +40,7 @@ static const GOptionEntry entries[] = {
   { "interactive", 'i', 0, G_OPTION_ARG_NONE, &interactive, N_("Prompt before overwrite"), NULL },
   { "backup", 'b', 0, G_OPTION_ARG_NONE, &backup, N_("Backup existing destination files"), NULL },
   { "no-copy-fallback", 'C', 0, G_OPTION_ARG_NONE, &no_copy_fallback, N_("Don’t use copy and delete 
fallback"), NULL },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static gint64 start_time;
diff --git a/gio/gio-tool-open.c b/gio/gio-tool-open.c
index ac6764a97..f55057bd2 100644
--- a/gio/gio-tool-open.c
+++ b/gio/gio-tool-open.c
@@ -33,7 +33,7 @@ static int n_outstanding = 0;
 static gboolean success = TRUE;
 
 static const GOptionEntry entries[] = {
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static void
diff --git a/gio/gio-tool-remove.c b/gio/gio-tool-remove.c
index 8748b4629..fb995bfff 100644
--- a/gio/gio-tool-remove.c
+++ b/gio/gio-tool-remove.c
@@ -29,7 +29,7 @@ static gboolean force = FALSE;
 
 static const GOptionEntry entries[] = {
   {"force", 'f', 0, G_OPTION_ARG_NONE, &force, N_("Ignore nonexistent files, never prompt"), NULL},
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 int
diff --git a/gio/gio-tool-rename.c b/gio/gio-tool-rename.c
index 36e4a8e20..0070b6c60 100644
--- a/gio/gio-tool-rename.c
+++ b/gio/gio-tool-rename.c
@@ -26,7 +26,7 @@
 
 
 static const GOptionEntry entries[] = {
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 int
diff --git a/gio/gio-tool-save.c b/gio/gio-tool-save.c
index 4969b8b9d..30fb3f91e 100644
--- a/gio/gio-tool-save.c
+++ b/gio/gio-tool-save.c
@@ -55,7 +55,7 @@ static const GOptionEntry entries[] =
   { "print-etag", 'v', 0, G_OPTION_ARG_NONE, &print_etag, N_("Print new etag at end"), NULL },
   /* Translators: The "etag" is a token allowing to verify whether a file has been modified */
   { "etag", 'e', 0, G_OPTION_ARG_STRING, &etag, N_("The etag of the file being overwritten"), N_("ETAG") },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 /* 256k minus malloc overhead */
diff --git a/gio/gio-tool-set.c b/gio/gio-tool-set.c
index ab3ac1544..4dbe1214f 100644
--- a/gio/gio-tool-set.c
+++ b/gio/gio-tool-set.c
@@ -32,7 +32,7 @@ static gboolean nofollow_symlinks = FALSE;
 static const GOptionEntry entries[] = {
   { "type", 't', 0, G_OPTION_ARG_STRING, &attr_type, N_("Type of the attribute"), N_("TYPE") },
   { "nofollow-symlinks", 'n', 0, G_OPTION_ARG_NONE, &nofollow_symlinks, N_("Don’t follow symbolic links"), 
NULL },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static char *
diff --git a/gio/gio-tool-trash.c b/gio/gio-tool-trash.c
index fc17b4cba..449fa9577 100644
--- a/gio/gio-tool-trash.c
+++ b/gio/gio-tool-trash.c
@@ -35,7 +35,7 @@ static const GOptionEntry entries[] = {
   { "list", 0, 0, G_OPTION_ARG_NONE, &list, N_("List files in the trash with their original locations"), 
NULL },
   { "restore", 0, 0, G_OPTION_ARG_NONE, &restore, N_("Restore a file from trash to its original location 
(possibly "
                                                      "recreating the directory)"), NULL },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static void
diff --git a/gio/gio-tool-tree.c b/gio/gio-tool-tree.c
index 2327c4549..c572afc37 100644
--- a/gio/gio-tool-tree.c
+++ b/gio/gio-tool-tree.c
@@ -31,7 +31,7 @@ static gboolean follow_symlinks = FALSE;
 static const GOptionEntry entries[] = {
   { "hidden", 'h', 0, G_OPTION_ARG_NONE, &show_hidden, N_("Show hidden files"), NULL },
   { "follow-symlinks", 'l', 0, G_OPTION_ARG_NONE, &follow_symlinks, N_("Follow symbolic links, mounts and 
shortcuts"), NULL },
-  { NULL }
+  G_OPTION_ENTRY_NULL
 };
 
 static gint
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index 74373e5b0..db621a7b6 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -747,7 +747,7 @@ main (int argc, char **argv)
     { "internal", 0, 0, G_OPTION_ARG_NONE, &internal, N_("Don’t export functions; declare them 
G_GNUC_INTERNAL"), NULL },
     { "external-data", 0, 0, G_OPTION_ARG_NONE, &external_data, N_("Don’t embed resource data in the C file; 
assume it's linked externally instead"), NULL },
     { "c-name", 0, 0, G_OPTION_ARG_STRING, &c_name, N_("C identifier name used for the generated source 
code"), NULL },
-    { NULL }
+    G_OPTION_ENTRY_NULL
   };
 
 #ifdef G_OS_WIN32
diff --git a/gio/tests/echo-server.c b/gio/tests/echo-server.c
index 7634b5bb0..83d1d32db 100644
--- a/gio/tests/echo-server.c
+++ b/gio/tests/echo-server.c
@@ -7,7 +7,7 @@ int port = 7777;
 static GOptionEntry cmd_entries[] = {
   {"port", 'p', 0, G_OPTION_ARG_INT, &port,
    "Local port to bind to", NULL},
-  {NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 
diff --git a/gio/tests/filter-cat.c b/gio/tests/filter-cat.c
index 2cd02b7a2..0bc713735 100644
--- a/gio/tests/filter-cat.c
+++ b/gio/tests/filter-cat.c
@@ -54,7 +54,7 @@ static GOptionEntry entries[] = {
   {"to-charset", 0, 0, G_OPTION_ARG_STRING, &to_charset, "to charset", NULL},
   {"fallback", 0, 0, G_OPTION_ARG_NONE, &fallback, "use fallback", NULL},
   {G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &locations, "locations", NULL},
-  {NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 static void
diff --git a/gio/tests/gapplication-example-cmdline3.c b/gio/tests/gapplication-example-cmdline3.c
index b95e0cbc8..eecdc6578 100644
--- a/gio/tests/gapplication-example-cmdline3.c
+++ b/gio/tests/gapplication-example-cmdline3.c
@@ -17,7 +17,7 @@ my_cmdline_handler (gpointer data)
     { "arg1", 0, 0, G_OPTION_ARG_INT, &arg1, NULL, NULL },
     { "arg2", 0, 0, G_OPTION_ARG_NONE, &arg2, NULL, NULL },
     { "help", '?', 0, G_OPTION_ARG_NONE, &help, NULL, NULL },
-    { NULL }
+    G_OPTION_ENTRY_NULL
   };
   GError *error;
   gint i;
diff --git a/gio/tests/gapplication-example-cmdline4.c b/gio/tests/gapplication-example-cmdline4.c
index 112006212..ece2ee528 100644
--- a/gio/tests/gapplication-example-cmdline4.c
+++ b/gio/tests/gapplication-example-cmdline4.c
@@ -53,7 +53,7 @@ main (int argc, char **argv)
     /* A dummy flag option, to be handled in primary */
     { "flag", 'f', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, NULL, "A flag argument", NULL },
 
-    { NULL }
+    G_OPTION_ENTRY_NULL
   };
 
   app = g_application_new ("org.gtk.TestApplication",
diff --git a/gio/tests/gdbus-daemon.c b/gio/tests/gdbus-daemon.c
index a33269916..6c2b81c2c 100644
--- a/gio/tests/gdbus-daemon.c
+++ b/gio/tests/gdbus-daemon.c
@@ -19,7 +19,7 @@ main (int argc, char *argv[])
     { "config-file", 0, 0, G_OPTION_ARG_STRING, &config_file, N_("Ignored, for compat with GTestDbus"), NULL 
},
     { "print-address", 0, 0, G_OPTION_ARG_NONE, &print_address, N_("Print address"), NULL },
     { "print-env", 0, 0, G_OPTION_ARG_NONE, &print_env, N_("Print address in shell mode"), NULL },
-    { NULL }
+    G_OPTION_ENTRY_NULL
   };
 
   context = g_option_context_new ("");
diff --git a/gio/tests/gdbus-example-own-name.c b/gio/tests/gdbus-example-own-name.c
index 74d39208f..6c83f12fe 100644
--- a/gio/tests/gdbus-example-own-name.c
+++ b/gio/tests/gdbus-example-own-name.c
@@ -40,7 +40,7 @@ main (int argc, char *argv[])
       { "replace", 'r', 0, G_OPTION_ARG_NONE, &opt_replace, "Replace existing name if possible", NULL },
       { "allow-replacement", 'a', 0, G_OPTION_ARG_NONE, &opt_allow_replacement, "Allow replacement", NULL },
       { "name", 'n', 0, G_OPTION_ARG_STRING, &opt_name, "Name to acquire", NULL },
-      { NULL}
+      G_OPTION_ENTRY_NULL
     };
 
   error = NULL;
diff --git a/gio/tests/gdbus-example-peer.c b/gio/tests/gdbus-example-peer.c
index 4fa1df9a5..f57d36832 100755
--- a/gio/tests/gdbus-example-peer.c
+++ b/gio/tests/gdbus-example-peer.c
@@ -252,7 +252,7 @@ main (int argc, char *argv[])
       { "server", 's', 0, G_OPTION_ARG_NONE, &opt_server, "Start a server instead of a client", NULL },
       { "address", 'a', 0, G_OPTION_ARG_STRING, &opt_address, "D-Bus address to use", NULL },
       { "allow-anonymous", 'n', 0, G_OPTION_ARG_NONE, &opt_allow_anonymous, "Allow anonymous 
authentication", NULL },
-      { NULL}
+      G_OPTION_ENTRY_NULL
     };
 
   ret = 1;
diff --git a/gio/tests/gdbus-example-watch-name.c b/gio/tests/gdbus-example-watch-name.c
index caec6ec08..27cc3f387 100644
--- a/gio/tests/gdbus-example-watch-name.c
+++ b/gio/tests/gdbus-example-watch-name.c
@@ -9,7 +9,7 @@ static GOptionEntry opt_entries[] =
   { "name", 'n', 0, G_OPTION_ARG_STRING, &opt_name, "Name to watch", NULL },
   { "system-bus", 's', 0, G_OPTION_ARG_NONE, &opt_system_bus, "Use the system-bus instead of the 
session-bus", NULL },
   { "auto-start", 'a', 0, G_OPTION_ARG_NONE, &opt_auto_start, "Instruct the bus to launch an owner for the 
name", NULL},
-  { NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 static void
diff --git a/gio/tests/gdbus-example-watch-proxy.c b/gio/tests/gdbus-example-watch-proxy.c
index 51132e385..8cce90c0d 100644
--- a/gio/tests/gdbus-example-watch-proxy.c
+++ b/gio/tests/gdbus-example-watch-proxy.c
@@ -15,7 +15,7 @@ static GOptionEntry opt_entries[] =
   { "system-bus", 's', 0, G_OPTION_ARG_NONE, &opt_system_bus, "Use the system-bus instead of the 
session-bus", NULL },
   { "no-auto-start", 'a', 0, G_OPTION_ARG_NONE, &opt_no_auto_start, "Don't instruct the bus to launch an 
owner for the name", NULL},
   { "no-properties", 'p', 0, G_OPTION_ARG_NONE, &opt_no_properties, "Do not load properties", NULL},
-  { NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 static GMainLoop *loop = NULL;
diff --git a/gio/tests/gsubprocess-testprog.c b/gio/tests/gsubprocess-testprog.c
index c9b06c2a2..da3cf8d00 100644
--- a/gio/tests/gsubprocess-testprog.c
+++ b/gio/tests/gsubprocess-testprog.c
@@ -12,7 +12,7 @@
 #endif
 
 static GOptionEntry options[] = {
-  {NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 static void
diff --git a/gio/tests/httpd.c b/gio/tests/httpd.c
index 9bca6c96c..6658e15f1 100644
--- a/gio/tests/httpd.c
+++ b/gio/tests/httpd.c
@@ -6,7 +6,7 @@ static char *root = NULL;
 static GOptionEntry cmd_entries[] = {
   {"port", 'p', 0, G_OPTION_ARG_INT, &port,
    "Local port to bind to", NULL},
-  {NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 static void
diff --git a/gio/tests/live-g-file.c b/gio/tests/live-g-file.c
index 316e23c9e..9e2cc0c27 100644
--- a/gio/tests/live-g-file.c
+++ b/gio/tests/live-g-file.c
@@ -1371,7 +1371,7 @@ main (int argc, char *argv[])
     {"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, "Be verbose", NULL},
     {"posix", 'x', 0, G_OPTION_ARG_NONE, &posix_compat,
      "Test POSIX-specific features (unix permissions, symlinks)", NULL},
-    {NULL}
+    G_OPTION_ENTRY_NULL
   };
 
   test_suite = FALSE;
diff --git a/gio/tests/resolver.c b/gio/tests/resolver.c
index 3e6d89670..6e0c4d73b 100644
--- a/gio/tests/resolver.c
+++ b/gio/tests/resolver.c
@@ -672,7 +672,7 @@ static const GOptionEntry option_entries[] = {
   { "synchronous", 's', 0, G_OPTION_ARG_NONE, &synchronous, "Synchronous connections", NULL },
   { "connectable", 'c', 0, G_OPTION_ARG_INT, &connectable_count, "Connectable count", "C" },
   { "special-type", 't', 0, G_OPTION_ARG_CALLBACK, record_type_arg, "Record type like MX, TXT, NS or SOA", 
"RR" },
-  { NULL },
+  G_OPTION_ENTRY_NULL,
 };
 
 int
diff --git a/gio/tests/send-data.c b/gio/tests/send-data.c
index a66976fa3..d70502eca 100644
--- a/gio/tests/send-data.c
+++ b/gio/tests/send-data.c
@@ -20,7 +20,7 @@ static GOptionEntry cmd_entries[] = {
    "Time out socket I/O after the specified number of seconds", NULL},
   {"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
    "Verbose debugging output", NULL},
-  {NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 static gpointer
diff --git a/tests/gobject/performance-threaded.c b/tests/gobject/performance-threaded.c
index 6a04ba0fd..af8cc79b0 100644
--- a/tests/gobject/performance-threaded.c
+++ b/tests/gobject/performance-threaded.c
@@ -210,7 +210,7 @@ static GOptionEntry cmd_entries[] = {
    "Time to run each test in seconds", NULL},
   {"list", 'l', 0, G_OPTION_ARG_NONE, &list, 
    "List all available tests and exit", NULL},
-  {NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 static gpointer
diff --git a/tests/gobject/performance.c b/tests/gobject/performance.c
index 40ab48a02..5208172bd 100644
--- a/tests/gobject/performance.c
+++ b/tests/gobject/performance.c
@@ -37,7 +37,7 @@ static GOptionEntry cmd_entries[] = {
    "Print extra information", NULL},
   {"seconds", 's', 0, G_OPTION_ARG_INT, &test_length,
    "Time to run each test in seconds", NULL},
-  {NULL}
+  G_OPTION_ENTRY_NULL
 };
 
 typedef struct _PerformanceTest PerformanceTest;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]