avoid compiler warnings with g++

This commit is contained in:
Dane Springmeyer 2011-03-17 23:49:06 +00:00
parent c2654fd95d
commit 157563ab4e
2 changed files with 6 additions and 5 deletions

View file

@ -154,10 +154,10 @@ namespace agg
return path_cmd_line_to;
}
double ct2_x;
double ct2_y;
double end_x;
double end_y;
double ct2_x=0;
double ct2_y=0;
double end_x=0;
double end_y=0;
unsigned cmd = m_source->vertex(x, y);
switch(cmd)

View file

@ -720,7 +720,8 @@ namespace agg
template<class VertexSource>
void concat_path(VertexSource& vs, unsigned path_id = 0)
{
double x, y;
double x=0;
double y=0;
unsigned cmd;
vs.rewind(path_id);
while(!is_stop(cmd = vs.vertex(&x, &y)))