From: Vlad S. <ser...@us...> - 2005-06-13 16:04:42
|
Update of /cvsroot/naviserver/modules/nsgdchart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2950/nsgdchart Modified Files: gdchart.c Log Message: silenced more compiler warnings Index: gdchart.c =================================================================== RCS file: /cvsroot/naviserver/modules/nsgdchart/gdchart.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** gdchart.c 12 Jun 2005 22:34:23 -0000 1.3 --- gdchart.c 13 Jun 2005 16:04:33 -0000 1.4 *************** *** 309,313 **** } ! static void draw_3d_line(gdImagePtr im,int y0,int x1,int x2,int y1[],int y2[],int xdepth,int ydepth,int num_sets,int clr[],int clrshd[]) { #define F(x,i) (int)((float)((x)-x1)*slope[i]+(float)y1[i]) --- 309,313 ---- } ! static void draw_3d_line(gdImagePtr im,int y0,int x1,int x2,int y1[],int y2[],int xdepth,int ydepth,int num_sets,unsigned long clr[],unsigned long clrshd[]) { #define F(x,i) (int)((float)((x)-x1)*slope[i]+(float)y1[i]) *************** *** 566,570 **** gdImagePtr bg_img = 0; int num_sets = GDC->num_sets; ! float xorig,yorig,vyorig; float yscl = 0.0; float vyscl = 0.0; --- 566,570 ---- gdImagePtr bg_img = 0; int num_sets = GDC->num_sets; ! float xorig,yorig,vyorig = 0; float yscl = 0.0; float vyscl = 0.0; *************** *** 611,616 **** int annote_hgt = 0; int setno = 0; /* affects PX() and PY() */ ! float *uvol; ! unsigned long BGColor,LineColor,PlotColor, GridColor,VolColor,AnnoteColor; float *uvals[num_sets]; unsigned long ExtVolColor[GDC->num_points]; --- 611,617 ---- int annote_hgt = 0; int setno = 0; /* affects PX() and PY() */ ! float *uvol = 0; ! unsigned long BGColor = 0,LineColor = 0,PlotColor = 0; ! unsigned long GridColor = 0,VolColor = 0,AnnoteColor = 0; float *uvals[num_sets]; unsigned long ExtVolColor[GDC->num_points]; *************** *** 1614,1619 **** int y1[num_sets]; int y2[num_sets]; ! int clr[num_sets]; ! int clrshd[num_sets]; for(i = 1; i < GDC->num_points; ++i) { --- 1615,1620 ---- int y1[num_sets]; int y2[num_sets]; ! unsigned long clr[num_sets]; ! unsigned long clrshd[num_sets]; for(i = 1; i < GDC->num_points; ++i) { *************** *** 1665,1669 **** xdepth_3D, ydepth_3D, ! set,clr, clrshd); } --- 1666,1671 ---- xdepth_3D, ydepth_3D, ! set, ! clr, clrshd); } |