[cairo-bugs] [Bug 24995] New: CAIRO_FORMAT_VALID failed to work with Sun Studio C compiler
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Nov 9 03:10:05 PST 2009
http://bugs.freedesktop.org/show_bug.cgi?id=24995
Summary: CAIRO_FORMAT_VALID failed to work with Sun Studio C
compiler
Product: cairo
Version: 1.9.3
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: cworth at cworth.org
ReportedBy: ginn.chen at sun.com
QAContact: cairo-bugs at cairographics.org
Created an attachment (id=31059)
--> (http://bugs.freedesktop.org/attachment.cgi?id=31059)
test
Test program attached.
ginn at opensolaris:~$ cc cairotest.c
"cairotest.c", line 18: warning: initializer does not fit or is out of range:
0xffffffff
ginn at opensolaris:~$ ./a.out
valid? 1
ginn at opensolaris:~$ gcc-4.3.2 cairotest.c
ginn at opensolaris:~$ ./a.out
valid? 0
I'm not sure if the behavior is implement dependent.
I think it would be safer if we use 0x7fffffff for CAIRO_FORMAT_INVALID or case
it to unsigned it in CAIRO_FORMAT_VALID.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list