[gobject-introspection/no-designated-init] tests/scanner/regress.c: Avoid designated initializers
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/no-designated-init] tests/scanner/regress.c: Avoid designated initializers
- Date: Tue, 30 Apr 2019 08:14:24 +0000 (UTC)
commit 9e5065eaf08ea4b1a11b3429ba92bd8d9f0a10bd
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Apr 30 16:12:31 2019 +0800
tests/scanner/regress.c: Avoid designated initializers
As the rest of the G-I code is not using C99 syntax, let's ensure that
the tests do not inadvertedly do so.
tests/scanner/regress.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index eca7cdd4..853334f1 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -4520,9 +4520,9 @@ void
regress_test_array_struct_out_none (RegressTestStructA **arr, gsize *len)
{
static RegressTestStructA array[3] = {
- {.some_int = 111},
- {.some_int = 222},
- {.some_int = 333},
+ {111,}, /* {.some_int = 111} */
+ {222,}, /* {.some_int = 222} */
+ {333,}, /* {.some_int = 333} */
};
*arr = array;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]