[cairo] Warnings from MSVC build

Simon Richter Simon.Richter at hogyros.de
Mon Feb 8 15:43:37 CET 2016


I'm working on shipping Windows binaries of KiCad, which uses Cairo,
built with the MSVC compiler.

I see several compiler warnings that might be worth looking at, the full
report is at


There are three major categories:

 - "unexpected tokens following preprocessor directive - expected a newline"

This smells like something really fishy is going on during preprocessing
-- these happen in the pixman version comparison lines.

 - "This object file does not define any previously undefined public
symbols, so it will not be used by any link operation that consumes this

These come from empty files. Are these still needed?

 - "'type cast': pointer truncation from 'void *' to 'unsigned long'"

These smell wrong to me. On MSVC, "unsigned long" is 32 bits wide, so
casting a 64 bit pointer to it is probably a bad idea.

Should I investigate further, or did someone already do that?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.cairographics.org/archives/cairo/attachments/20160208/324ad955/attachment.sig>

More information about the cairo mailing list