From: Emil Velikov Date: Wed, 12 Feb 2014 21:00:02 +0000 (+0000) Subject: glx/tests: explicitly set __DRI2rendererQueryExtension members X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51e3569573a7b3f8da0df093836761003fcdc414;p=mesa.git glx/tests: explicitly set __DRI2rendererQueryExtension members While we're here use the typcast'ed name and constify. Signed-off-by: Emil Velikov Reviewed-by: Ian Romanick --- diff --git a/src/glx/tests/query_renderer_implementation_unittest.cpp b/src/glx/tests/query_renderer_implementation_unittest.cpp index 35b3972d57f..6ec4c4f8030 100644 --- a/src/glx/tests/query_renderer_implementation_unittest.cpp +++ b/src/glx/tests/query_renderer_implementation_unittest.cpp @@ -140,11 +140,11 @@ fake_queryString(__DRIscreen *screen, int attribute, const char **val) return -1; } -struct __DRI2rendererQueryExtensionRec rendererQueryExt = { - { __DRI2_RENDERER_QUERY, 1 }, +static const __DRI2rendererQueryExtension rendererQueryExt = { + .base = { __DRI2_RENDERER_QUERY, 1 }, - fake_queryInteger, - fake_queryString + .queryInteger = fake_queryInteger, + .queryString = fake_queryString }; void dri2_query_renderer_string_test::SetUp()