Summary: | cairo_svg_surface_create doesn't match API | ||
---|---|---|---|
Product: | cairo | Reporter: | Paul Childs <childsey01> |
Component: | svg backend | Assignee: | Emmanuel Pacaud <emmanuel.pacaud> |
Status: | RESOLVED NOTABUG | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | minor | ||
Priority: | medium | CC: | freedesktop |
Version: | 1.10.2 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Paul Childs
2011-06-23 03:08:46 UTC
#include <cairo-svg.h> ? (In reply to comment #1) > #include <cairo-svg.h> ? Not directly. I'm wrapping cairo in via GTK and my CAIRO_HAS_SVG_SURFACE variable is enabled. The program is able to still render to svg fine, just I get this warning. It is strange as both cairo-svg.h and cairo-ps.h both have the same declarations for their surface_create functions so I don't know why the compiler would treat them differently. I get it on both computers I've got one with 1.8.10 and the other with 1.10.2 (In reply to comment #2) > (In reply to comment #1) > > #include <cairo-svg.h> ? > > Not directly. What do you mean? So you don't include cairo-svg.h? That's why you get the warning. ok seems to do it. How come the include isn't listed in the API? Guess I must just be lazy being used to the GTK API where that's all listed. Also would have thought the compiler would have a different warning. Anyway just excuses for feeling like a fool I guess. Sorry for bothering you guys and thanks for replying so quickly. You want -Wmissing-declarations to get useful warnings for that, though I think -Wall should warn about the function not being defined already. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.