Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From 8a382c015cd3c69fcfc146ef03dcbf30c77ff207 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 1 Mar 2019 09:47:57 -0800 |
| 4 | Subject: [PATCH] test/xtest: Initialize array with braces |
| 5 | |
| 6 | Fixes an error when extra warnings are enabled, this is caught with clang |
| 7 | |
| 8 | test/xtest.c:64:23: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] |
| 9 | WindowRec root = {0}; |
| 10 | ^ |
| 11 | {} |
| 12 | 1 error generated. |
| 13 | |
| 14 | Upstream-Status: Pending |
| 15 | |
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 17 | --- |
| 18 | test/xtest.c | 2 +- |
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 20 | |
| 21 | diff --git a/test/xtest.c b/test/xtest.c |
| 22 | index fc5e433..d7e6620 100644 |
| 23 | --- a/test/xtest.c |
| 24 | +++ b/test/xtest.c |
| 25 | @@ -61,7 +61,7 @@ xtest_init_devices(void) |
| 26 | { |
| 27 | ScreenRec screen = {0}; |
| 28 | ClientRec server_client = {0}; |
| 29 | - WindowRec root = {0}; |
| 30 | + WindowRec root = {{0}}; |
| 31 | WindowOptRec optional = {0}; |
| 32 | |
| 33 | /* random stuff that needs initialization */ |
| 34 | -- |
| 35 | 2.21.0 |
| 36 | |