From 8de85eb5867e95b2822f4ed470401310395bb8e6 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 7 May 2014 22:30:43 +0100 Subject: [PATCH] glx/tests: Partially revert commit 51e3569573a7b3f8da0df093836761003fcdc414 C++ does not support designated initializers, thus compilation is not guaranteed to succeed. Surpisingly gcc 4.6.3 fails to build the code, while version 4.9.0 compiles it without a hitch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78403 Signed-off-by: Emil Velikov --- src/glx/tests/query_renderer_implementation_unittest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/glx/tests/query_renderer_implementation_unittest.cpp b/src/glx/tests/query_renderer_implementation_unittest.cpp index 6ec4c4f..7f8f301 100644 --- a/src/glx/tests/query_renderer_implementation_unittest.cpp +++ b/src/glx/tests/query_renderer_implementation_unittest.cpp @@ -141,10 +141,10 @@ fake_queryString(__DRIscreen *screen, int attribute, const char **val) } static const __DRI2rendererQueryExtension rendererQueryExt = { - .base = { __DRI2_RENDERER_QUERY, 1 }, + { __DRI2_RENDERER_QUERY, 1 }, - .queryInteger = fake_queryInteger, - .queryString = fake_queryString + fake_queryInteger, + fake_queryString }; void dri2_query_renderer_string_test::SetUp() -- 1.9.2