Am 06.05.2006 02:29 schrieb Thomas Klausner:
graphics/py-cairo leuzi%trash.net@localhostpycairo-font.c: In function `scaled_font_new': pycairo-font.c:207: parse error before `*' pycairo-font.c:208: `o' undeclared (first use in this function) pycairo-font.c:208: (Each undeclared identifier is reported only once pycairo-font.c:208: for each function it appears in.) pycairo-font.c:220: warning: control reaches end of non-void function
A gcc 2.x problem again. The attached patch (untested again, sorry) should fix it. I don't know if there are more occurrences of such declarations and if it is a good idea to patch them all, especially now that 1.6 is EOL'd. If we don't patch them we should remove the last patch I submitted for the package's Makefile again, though, and thereby breaking all platforms using gcc 2.x or another C99-unaware compiler.
Christoph
Attachment:
pycairo-font.diff
Description: Binary data