diff options
author | Carlos Santa <carlos.santa@intel.com> | 2020-07-23 16:54:58 -0700 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2020-08-06 11:20:28 +0300 |
commit | 3da65baa4f5a392fe88ad47a7d4e87f6a19926f1 (patch) | |
tree | c808f63501bf2152c96521bc6492cb3f03cfa2c1 /tests/kms_plane_cursor.c | |
parent | 53d2ddd2f5f7beb98a996d7f2c3976c87d4da01f (diff) |
tests: use an empty brace initializer
In some sandboxes the toolchain complains about missing
braces around initializer, however, using an empty
initializer is enough to shut out the compiler.
../tests/kms_plane_cursor.c: In function '__real_main_302':
../tests/kms_plane_cursor.c:305:2 error: missing braces around
initializer [-Werror=missing-braces]
data_t data = { 0 };
v2:
Use an empty initializer { } instead of { 0 } <Petri Latvala>
Signed-off-by: Carlos Santa <carlos.santa@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/kms_plane_cursor.c')
-rw-r--r-- | tests/kms_plane_cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_plane_cursor.c b/tests/kms_plane_cursor.c index f7d50484..f6766d36 100644 --- a/tests/kms_plane_cursor.c +++ b/tests/kms_plane_cursor.c @@ -302,7 +302,7 @@ static void test_cursor_viewport(data_t *data, int size, enum pipe pipe_id) igt_main { static const int cursor_sizes[] = { 64, 128, 256 }; - data_t data = { 0 }; + data_t data = {}; enum pipe pipe; int i; |