This is probably a c++ question and more related to AGG itself, but I
try to fix those compiler warnings to the AGG renderer.
At some points I get the warning:
/home/udo/agg-2.4/include/agg_bezier_arc.h:71: warning: enumeral and
non-enumeral type in conditional expression
The relevant code for this:
class bezier_arc
{
public:
//--------------------------------------------------------------------
unsigned vertex(double* x, double* y)
{
if(m_vertex >= m_num_vertices) return path_cmd_stop;
*x = m_vertices[m_vertex];
*y = m_vertices[m_vertex + 1];
m_vertex += 2;
// WARNING GENERATED BELOW:
return (m_vertex == 2) ? path_cmd_move_to : m_cmd;
}
private:
unsigned m_vertex; // <---
unsigned m_num_vertices;
double m_vertices[26];
unsigned m_cmd;
};
Could this be because m_vertex is just defined as "unsiged"?
Sorry if this is a too easy question,.
Udo
_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev