15 Sep
2011
15 Sep
'11
11:48 p.m.
2011/9/16 ~suv <suv-sf@...58...>:
Revision 10629, compiling with GCC 4.2.1 on Mac OS X 10.5.8 (i386):
- warning during compilation:
CXX xml/repr-css.o xml/repr-css.cpp: In function ‘gchar* sp_repr_css_write_string(SPCSSAttr*)’: xml/repr-css.cpp:235: warning: cannot pass objects of non-POD type ‘const class Inkscape::Util::ptr_shared<char>’ through ‘...’; call will abort at runtime xml/repr-css.cpp:235: warning: format ‘%s’ expects type ‘char*’, but argument 5 has type ‘int’
I changed iter->value to iter->value.pointer() at line 235 in revision 10630. It compiles without a warning now, but I'm not sure whether it will also fix the runtime problem.
Regards, Krzysztof