freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] gcc warnings in woff2


From: Alexei Podtelezhnikov
Subject: [ft-devel] gcc warnings in woff2
Date: Wed, 25 Sep 2019 09:02:04 -0400

In file included from freetype2/src/sfnt/sfnt.c:26:0:
freetype2/src/sfnt/sfwoff2.c: In function 'woff2_open_font.isra.24':
freetype2/src/sfnt/sfwoff2.c:1729:22: warning: '*((void *)&info+16)'
may be used uninitialized in this function [-Wmaybe-uninitialized]
     WOFF2_InfoRec    info;
                      ^
freetype2/src/sfnt/sfwoff2.c:1374:25: warning: '*((void *)&info+8)'
may be used uninitialized in this function [-Wmaybe-uninitialized]
     if ( ( num_hmetrics > num_glyphs ) ||
                         ^
freetype2/src/sfnt/sfwoff2.c:1729:22: note: '*((void *)&info+8)' was
declared here
     WOFF2_InfoRec    info;
                      ^
freetype2/src/sfnt/sfwoff2.c:1196:25: warning: 'x_min' may be used
uninitialized in this function [-Wmaybe-uninitialized]
         info->x_mins[i] = x_min;
                         ^
freetype2/src/sfnt/sfwoff2.c:940:18: note: 'x_min' was declared here
       FT_UShort  x_min;
                  ^
freetype2/src/sfnt/sfwoff2.c:1374:25: warning: 'num_hmetrics' may be
used uninitialized in this function [-Wmaybe-uninitialized]
     if ( ( num_hmetrics > num_glyphs ) ||
                         ^
freetype2/src/sfnt/sfwoff2.c:1495:16: note: 'num_hmetrics' was declared here
     FT_UShort  num_hmetrics;
                ^



reply via email to

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