0001-test-xtest-Initialize-array-with-braces.patch 995 B

123456789101112131415161718192021222324252627282930313233343536
  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. Fixes an error when extra warnings are enabled, this is caught with clang
  6. test/xtest.c:64:23: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
  7. WindowRec root = {0};
  8. ^
  9. {}
  10. 1 error generated.
  11. Upstream-Status: Pending
  12. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  13. ---
  14. test/xtest.c | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/test/xtest.c b/test/xtest.c
  17. index fc5e433..d7e6620 100644
  18. --- a/test/xtest.c
  19. +++ b/test/xtest.c
  20. @@ -61,7 +61,7 @@ xtest_init_devices(void)
  21. {
  22. ScreenRec screen = {0};
  23. ClientRec server_client = {0};
  24. - WindowRec root = {0};
  25. + WindowRec root = {{0}};
  26. WindowOptRec optional = {0};
  27. /* random stuff that needs initialization */
  28. --
  29. 2.21.0