[Mesa-dev] [PATCH 2/9] i965/dri: Combine declaration and assignment in intelCreateBuffer

Tapani Pälli tapani.palli at intel.com
Mon May 29 08:54:42 UTC 2017



On 05/29/2017 09:55 AM, Martin Peres wrote:
> On 27/05/17 01:15, Chad Versace wrote:
>> Trivial cleanup.
>> ---
>>   src/mesa/drivers/dri/i965/intel_screen.c | 3 +--
>>   1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
>> index 5de6f18b84..24123e7986 100644
>> --- a/src/mesa/drivers/dri/i965/intel_screen.c
>> +++ b/src/mesa/drivers/dri/i965/intel_screen.c
>> @@ -1169,12 +1169,11 @@ intelCreateBuffer(__DRIscreen *dri_screen,
>>      mesa_format rgbFormat;
>>      unsigned num_samples =
>>         intel_quantize_num_samples(screen, mesaVis->samples);
>> -   struct gl_framebuffer *fb;
>>   
>>      if (isPixmap)
>>         return false;
>>   
>> -   fb = CALLOC_STRUCT(gl_framebuffer);
>> +   struct gl_framebuffer *fb = CALLOC_STRUCT(gl_framebuffer);
>>      if (!fb)
>>         return false;
>>   
>>
> 
> Do we compile mesa with c99 nowadays? Did I miss anything?

Yes, AFAICT has been in use some years already :)

// Tapani


More information about the mesa-dev mailing list