[glib: 3/9] Fix several missing initializer warnings in gio/tests/dbus-appinfo.c




commit 4a503bdbd7dd8e6f5560bfb8808fb8c705027f46
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri Nov 20 20:08:47 2020 +0100

    Fix several missing initializer warnings in gio/tests/dbus-appinfo.c
    
    gio/tests/dbus-appinfo.c:177:3: error: missing initializer for field ‘parameter_type’ of ‘GActionEntry’ 
{aka ‘const struct _GActionEntry’}
      177 |   { "frob",         test_application_frob              },
          |   ^
    gio/tests/dbus-appinfo.c:178:3: error: missing initializer for field ‘parameter_type’ of ‘GActionEntry’ 
{aka ‘const struct _GActionEntry’}
      178 |   { "tweak",        test_application_tweak             },
          |   ^
    gio/tests/dbus-appinfo.c:179:3: error: missing initializer for field ‘parameter_type’ of ‘GActionEntry’ 
{aka ‘const struct _GActionEntry’}
      179 |   { "twiddle",      test_application_twiddle           },
          |   ^
    gio/tests/dbus-appinfo.c:180:3: error: missing initializer for field ‘parameter_type’ of ‘GActionEntry’ 
{aka ‘const struct _GActionEntry’}
      180 |   { "quit",         test_application_quit              }
          |   ^

 gio/tests/dbus-appinfo.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gio/tests/dbus-appinfo.c b/gio/tests/dbus-appinfo.c
index 7e2fc4d79..86bdfebee 100644
--- a/gio/tests/dbus-appinfo.c
+++ b/gio/tests/dbus-appinfo.c
@@ -174,10 +174,10 @@ test_application_quit (GSimpleAction *action,
 }
 
 static const GActionEntry app_actions[] = {
-  { "frob",         test_application_frob              },
-  { "tweak",        test_application_tweak             },
-  { "twiddle",      test_application_twiddle           },
-  { "quit",         test_application_quit              }
+  { "frob",         test_application_frob,    NULL, NULL, NULL, { 0 } },
+  { "tweak",        test_application_tweak,   NULL, NULL, NULL, { 0 } },
+  { "twiddle",      test_application_twiddle, NULL, NULL, NULL, { 0 } },
+  { "quit",         test_application_quit,    NULL, NULL, NULL, { 0 } }
 };
 
 static void


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