From 504343f541a4680e9d6b591951a89eb885143a97 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 21 Mar 2019 09:37:45 +0200 Subject: tests/kms_vrr: fix compilation with Clang Clang fails to compile this file with this error: ../tests/kms_vrr.c:203:20: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] drmVBlank vbl = { 0 }; ^ {} As discussed in [1], using an empty initializer list is the preferred way to fix this. [1]: https://lists.freedesktop.org/archives/igt-dev/2019-March/010841.html Signed-off-by: Simon Ser Reviewed-by: Petri Latvala --- tests/kms_vrr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c index e4703f5f..9801b40a 100644 --- a/tests/kms_vrr.c +++ b/tests/kms_vrr.c @@ -200,7 +200,7 @@ static void prepare_test(data_t *data, igt_output_t *output, enum pipe pipe) static uint64_t wait_for_vblank(data_t *data, enum pipe pipe) { - drmVBlank vbl = { 0 }; + drmVBlank vbl = {}; vbl.request.type = kmstest_get_vbl_flag(pipe); vbl.request.type |= DRM_VBLANK_RELATIVE | DRM_VBLANK_EVENT; -- cgit v1.2.3