2013/3/13 Carlos López González <genet...@gmail.com>:
> For the first set of errors try this:
> Replace:
>
>       const unsigned char get_a()const { return pixel>>24; }
>       const unsigned char get_r()const { return pixel>>16; }
>       const unsigned char get_g()const { return pixel>>8; }
>       const unsigned char get_b()const { return pixel; }
>       const unsigned char get_alpha()const { return get_a(); }
>
> By
>
>       const unsigned char get_a()const { return (unsigned char) (pixel>>24); }
>       const unsigned char get_r()const { return (unsigned char) (pixel>>16); }
>       const unsigned char get_g()const { return (unsigned char) (pixel>>8); }
>       const unsigned char get_b()const { return (unsigned char) (pixel); }
>       const unsigned char get_alpha()const { return get_a(); }
>
> But wait a second, the error numbers are wrong.  Your paste bin says:
>
> In file included from color.cpp:34:0:
> color.h:738:30: warning: type qualifiers ignored on function return type
> [-Wignored-qualifiers]
> color.h:739:29: warning: type qualifiers ignored on function return type
> [-Wignored-qualifiers]
> color.h:740:29: warning: type qualifiers ignored on function return type
> [-Wignored-qualifiers]
> color.h:741:29: warning: type qualifiers ignored on function return type
> [-Wignored-qualifiers]
> color.h:742:29: warning: type qualifiers ignored on function return type
> [-Wignored-qualifiers]
> color.h:743:33: warning: type qualifiers ignored on function return type
> [-Wignored-qualifiers]
>
> where the lines from code are 736 to 741:
> https://github.com/synfig/synfig/blob/genete_new_cairo_core_2/synfig-core/src/synfig/color.h#L736
> Weird, isn't it?

That's because I have added " #include <stdint.h>" and one more empty
line on top of the color.h ^__^
Did the changes, but warnings still appear. Though, I don't think they
cause much issues for now.

2013/3/13 Carlos López González <genet...@gmail.com>:
> For the rest set of errors, try to remove the 'static' word for each error
> on lines:
> color.cpp:350:1: error: explicit template specialization cannot have a
> storage class
> color.cpp:413:1: error: explicit template specialization cannot have a
> storage class
> color.cpp:471:1: error: explicit template specialization cannot have a
> storage class
> color.cpp:513:1: error: explicit template specialization cannot have a
> storage class
> color.cpp:555:1: error: explicit template specialization cannot have a
> storage class
> color.cpp:618:1: error: explicit template specialization cannot have a
> storage class
> color.cpp:721:1: error: explicit template specialization cannot have a
> storage class
> color.cpp:769:1: error: explicit template specialization cannot have a
> storage class
> color.cpp:843:1: error: explicit template specialization cannot have a
> storage class

That worked perfectly - the synfig-core is compiled successfully now. ^__^
And no errors in studio!

I've tested it a bit and the speed difference is really noticeable! I
especially excited that there is no distortions produced by rotate
layers even when the quality is "8". ^___^

> Thank you very much for the compiler error reports!!!

Thanks to you! I believe everyone celebrating such a progress here! ^___^


-- 
http://morevnaproject.org/

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to