[PATCH 3/3] (try2) gdi32: Add support for loading scalable font resources.

Alexandre Julliard julliard at winehq.org
Thu Mar 29 11:50:24 CDT 2012


Huw Davies <huw at codeweavers.com> writes:

> ---
>  dlls/gdi32/font.c |   75 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 75 insertions(+), 0 deletions(-)

This one doesn't build:

gcc -m32 -c -I. -I. -I../../include -I../../include -I/usr/include/freetype2  -D__WINESRC__ -D_GDI32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -Werror -I/usr/include/freetype2  -g -O2  -o font.o font.c
font.c: In function ‘AddFontResourceExW’:
font.c:3498:59: error: ‘count’ may be used uninitialized in this function [-Werror=uninitialized]
font.c:3475:36: note: ‘count’ was declared here
cc1: all warnings being treated as errors
make[1]: *** [font.o] Error 1

Admittedly count would always be initialized with the files we create,
but we probably shouldn't rely on that.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list