freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new compiler warnings since 2.10.x


From: Werner LEMBERG
Subject: Re: new compiler warnings since 2.10.x
Date: Sun, 05 Jun 2022 04:39:24 +0000 (UTC)

>> freetype-2.12.1/src/smooth/ftgrays.c: In function 'gray_convert_glyph':
>> freetype-2.12.1/src/smooth/ftgrays.c:1968:20: warning: storing the address 
>> of local variable 'buffer' in 'worker_56(D)->ycells' [-Wdangling-pointer=]
>>  1968 |     ras.ycells     = (PCell*)buffer;
>>      |                    ^
>> freetype-2.12.1/src/smooth/ftgrays.c:1950:14: note: 'buffer' declared here>
>>  1950 |     TCell    buffer[FT_MAX_GRAY_POOL];
>>      |              ^~~~~~
>> freetype-2.12.1/src/smooth/ftgrays.c:1950:14: note: 'worker_56(D)' declared 
>> here
> 
> Do they really complain that we dare to allocate on the stack?  I
> don't even know how to address this.  There was a request to move
> the pool to the heap recently.  I do not know if this is an
> issue. Same with b/w rasterizer.  Same with autohinter.

Exactly my thoughts.  Is this warning active by default?  If yes, do
you have suggestions how to fix it?


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]