[Mesa-dev] [PATCH] target-helpers: don't use designated initializers

Brian Paul brianp at vmware.com
Tue Jul 1 14:53:10 PDT 2014


Typically, updating our environment to use new compilers is not easy 
because of various dependencies, etc.  It'll probably be a while.

-Brian

On 07/01/2014 03:47 PM, Emil Velikov wrote:
> On 01/07/14 20:17, sroland at vmware.com wrote:
>> From: Roland Scheidegger <sroland at vmware.com>
>>
>> it looks since ce1a1372280d737a1b85279995529206586ae480 they are now included
>> in more places, in particular even for things buildable with msvc, and hence
>> those break the build.
> Microsoft were kind enough to finally add support for this C99 feature with
> VC12 (msvc 2013). Any idea if/when you'll have the chance to update ?
>
> Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
>> ---
>>   src/gallium/auxiliary/target-helpers/inline_drm_helper.h | 8 ++++----
>>   1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
>> index a03db3a..3b36316 100644
>> --- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
>> +++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
>> @@ -210,13 +210,13 @@ dd_driver_name(void)
>>   }
>>
>>   static const struct drm_conf_ret throttle_ret = {
>> -   .type = DRM_CONF_INT,
>> -   .val.val_int = 2,
>> +   DRM_CONF_INT,
>> +   {2},
>>   };
>>
>>   static const struct drm_conf_ret share_fd_ret = {
>> -   .type = DRM_CONF_BOOL,
>> -   .val.val_int = true,
>> +   DRM_CONF_BOOL,
>> +   {true},
>>   };
>>
>>   static const struct drm_conf_ret *
>>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=lGQMzzTgII0I7jefp2FHq7WtZ%2BTLs8wadB%2BiIj9xpBY%3D%0A&m=%2BIzcYkOcw5m%2FMCgCtnTawQatbAYAkdTxMw46bNdhy40%3D%0A&s=098d467738bddbd233ce9172f902c2bf335ea907b5e4e36450bfe89ae1b09931
>



More information about the mesa-dev mailing list