Seems that f1ea06375d76c9f8e181e3ee4874ddef661e80c2 introduces a build error on Ubuntu with gcc 4.4.3.
[...] ccache gcc -m32 -c -I../../../wine-git/dlls/user32 -I. -I../../../wine-git/include -I../../include -D__WINESRC__ -D_USER32_ -D_WINABLE_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -D_FORTIFY_SOURCE=0 -o painting.o ../../../wine-git/dlls/user32/painting.c ../../../wine-git/dlls/user32/painting.c: In function ‘GetDCEx’: ../../../wine-git/dlls/user32/painting.c:913: error: initializer element is not constant
$ gcc --version gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
According to [1] this is not a compiler bug: the C standard says the expression is not constant.
I wonder why I'm the only one who gets this error.
Octavian
Am 23.07.2010 18:26, schrieb Octavian Voicu:
Seems that f1ea06375d76c9f8e181e3ee4874ddef661e80c2 introduces a build error on Ubuntu with gcc 4.4.3.
[...] ccache gcc -m32 -c -I../../../wine-git/dlls/user32 -I. -I../../../wine-git/include -I../../include -D__WINESRC__ -D_USER32_ -D_WINABLE_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -D_FORTIFY_SOURCE=0 -o painting.o ../../../wine-git/dlls/user32/painting.c ../../../wine-git/dlls/user32/painting.c: In function ‘GetDCEx’: ../../../wine-git/dlls/user32/painting.c:913: error: initializer element is not constant
$ gcc --version gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
According to [1] this is not a compiler bug: the C standard says the expression is not constant.
I wonder why I'm the only one who gets this error.
You are not, i have it too.