[cairo] Two compile issues of cairo HEAD

Ginn Chen Ginn.Chen at Sun.COM
Wed Nov 19 03:08:53 PST 2008


I'm building cairo HEAD on Solaris.
I found 2 minor issues.

1) cairo-spline.c
_cairo_spline_decompose_into is a void function, but it has a return  
statement with an expression.
Although the expression is also void, it's still not allowed by Sun  
Studio by default.
If I use features-extensions, it give a warning.

Here's the C standard.
============================================= The return statement


1. A return statement with an expression shall not appear in a  
function whose return type is void. A return statement without an  
expression shall only appear in a function whose return type is void.

2) cairo-script-interpreter.c, cairo-script-operators.c, cairo-script- 
They include byteswap.h, which is not exist on Solaris.

We should do something as cairo-wideint-type-private.h does.
Or just get it included?



Ginn Chen
Software Engineer, Browser Team
Sun Microsystems, Inc.
Phone: x82869 / +86-10-62673869
Fax: +86-10-62780969

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20081119/c519d223/attachment-0001.html 

More information about the cairo mailing list