[glib: 2/15] Fix missing initializer warnings in glib/tests/gvariant.c




commit 0c81ed309e6069639081845d2ba098abb2100ee2
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Sun Nov 8 19:47:55 2020 +0100

    Fix missing initializer warnings in glib/tests/gvariant.c
    
    glib/tests/gvariant.c: In function ‘test_lookup_value’:
    glib/tests/gvariant.c:4353:5: error: missing initializer for field ‘value’ of ‘struct <anonymous>’
     4353 |     { "@a{ss} {'x':  'y'}",   "y"         },
          |     ^
    glib/tests/gvariant.c:4350:31: note: ‘value’ declared here
     4350 |     const gchar *dict, *key, *value;
          |                               ^~~~~
    glib/tests/gvariant.c:4355:5: error: missing initializer for field ‘value’ of ‘struct <anonymous>’
     4355 |     { "@a{os} {'/x': 'y'}",   "/y"        },
          |     ^
    glib/tests/gvariant.c:4350:31: note: ‘value’ declared here
     4350 |     const gchar *dict, *key, *value;
          |                               ^~~~~
    glib/tests/gvariant.c:4358:5: error: missing initializer for field ‘value’ of ‘struct <anonymous>’
     4358 |     { "@a{sv} {'x':  <'y'>}", "y"         }
          |     ^
    glib/tests/gvariant.c:4350:31: note: ‘value’ declared here
     4350 |     const gchar *dict, *key, *value;
          |                               ^~~~~

 glib/tests/gvariant.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/tests/gvariant.c b/glib/tests/gvariant.c
index 3905e20bc..2308c38a7 100644
--- a/glib/tests/gvariant.c
+++ b/glib/tests/gvariant.c
@@ -4355,12 +4355,12 @@ test_lookup_value (void)
     const gchar *dict, *key, *value;
   } cases[] = {
     { "@a{ss} {'x':  'y'}",   "x",  "'y'" },
-    { "@a{ss} {'x':  'y'}",   "y"         },
+    { "@a{ss} {'x':  'y'}",   "y",  NULL  },
     { "@a{os} {'/x': 'y'}",   "/x", "'y'" },
-    { "@a{os} {'/x': 'y'}",   "/y"        },
+    { "@a{os} {'/x': 'y'}",   "/y", NULL  },
     { "@a{sv} {'x':  <'y'>}", "x",  "'y'" },
     { "@a{sv} {'x':  <5>}",   "x",  "5"   },
-    { "@a{sv} {'x':  <'y'>}", "y"         }
+    { "@a{sv} {'x':  <'y'>}", "y",  NULL  }
   };
   gsize i;
 


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