[Mesa-dev] [PATCH 07/16] glx/tests: explicitly set __DRI2rendererQueryExtension members

Ian Romanick idr at freedesktop.org
Fri Apr 4 15:35:13 PDT 2014


Vinson:  Does this build on C++ compilers you use to build GLX bits?

On 03/16/2014 06:48 AM, Emil Velikov wrote:
> While we're here use the typcast'ed name and constify.
> 
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  src/glx/tests/query_renderer_implementation_unittest.cpp | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/glx/tests/query_renderer_implementation_unittest.cpp b/src/glx/tests/query_renderer_implementation_unittest.cpp
> index 35b3972..6ec4c4f 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()
> 



More information about the mesa-dev mailing list