[smooth] Fix GCC LTO crashes on Windows.

Fixes #1164 by using a volatile variable around `setjmp`.  It is hard to
say how this fixes crashes related to certain link-time optimizations.
This does not decrease the rendering performance.

* src/smooth/ftgrays.c (gray_convert_glyph_inner): Use volatile `error`.
This commit is contained in:
Alexei Podtelezhnikov 2022-06-10 11:34:56 -04:00
parent 9acefc4f51
commit 4fef1fcede
1 changed files with 1 additions and 1 deletions

View File

@ -1912,7 +1912,7 @@ typedef ptrdiff_t FT_PtrDist;
gray_convert_glyph_inner( RAS_ARG_
int continued )
{
int error;
volatile int error;
if ( ft_setjmp( ras.jump_buffer ) == 0 )