From 00b3e21f44314c1a25b706109670eba3816ff915 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 24 Jul 2013 17:39:21 +0800 Subject: [PATCH] cogl-gpu-info.c: Avoid using named initializers Unfortunately named initializers is a feature that is not supported by all compilers (such as pre-2013 Visual Studio) so avoid using that. Reviewed-by: Robert Bragg (cherry picked from commit 5a5659f9861dfe7a4808f2a5284de8fe6175bec2) --- cogl/cogl-gpu-info.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cogl/cogl-gpu-info.c b/cogl/cogl-gpu-info.c index 2aae9fcac..e3e3d6693 100644 --- a/cogl/cogl-gpu-info.c +++ b/cogl/cogl-gpu-info.c @@ -459,9 +459,10 @@ UNIT_TEST (check_mesa_driver_package_parser, 0, /* no requirements */ 0 /* no failure cases */) { - const CoglGpuInfoStrings test_strings[] = { - { .version_string = "3.1 Mesa 9.2-devel15436ad" }, - { .version_string = "3.1 (Core Profile) Mesa 9.2.0-devel (git-15436ad)" } + /* renderer_string, version_string, vendor_string;*/ + const CoglGpuInfoStrings test_strings[2] = { + { NULL, "3.1 Mesa 9.2-devel15436ad", NULL }, + { NULL, "3.1 (Core Profile) Mesa 9.2.0-devel (git-15436ad)", NULL } }; int i; int version;