small cleanup in libart_lgpl



Small patch to clean up some warnings.

I #if 0'ed out the unused function in testart.c, maybe it should just be
deleted instead?

Index: art_render_gradient.c
===================================================================
RCS file: /cvs/gnome/libart_lgpl/art_render_gradient.c,v
retrieving revision 1.11
diff -u -p -r1.11 art_render_gradient.c
--- art_render_gradient.c	10 Sep 2003 15:49:00 -0000	1.11
+++ art_render_gradient.c	24 Jan 2005 08:49:58 -0000
@@ -630,7 +630,7 @@ art_render_gradient_radial_render (ArtRe
   double fx = gradient->fx;
   double fy = gradient->fy;
   double dx, dy;
-  double *affine = gradient->affine;
+  const double *affine = gradient->affine;
   double aff0 = affine[0];
   double aff1 = affine[1];
   const double a = z->a;
Index: testart.c
===================================================================
RCS file: /cvs/gnome/libart_lgpl/testart.c,v
retrieving revision 1.13
diff -u -p -r1.13 testart.c
--- testart.c	6 Oct 2001 06:22:16 -0000	1.13
+++ testart.c	24 Jan 2005 08:49:58 -0000
@@ -515,6 +515,7 @@ test_gradient (void)
   fwrite (buf, 1, 512 * 512 * 3, stdout);
 }
 
+#if 0
 static void
 output_svp_ppm (const ArtSVP *svp)
 {
@@ -524,6 +525,7 @@ output_svp_ppm (const ArtSVP *svp)
   printf ("P6\n512 512\n255\n");
   fwrite (buf, 1, 512 * 512 * 3, stdout);
 }
+#endif
 
 static void
 test_intersect (void)
Index: testuta.c
===================================================================
RCS file: /cvs/gnome/libart_lgpl/testuta.c,v
retrieving revision 1.3
diff -u -p -r1.3 testuta.c
--- testuta.c	14 Aug 2003 01:00:47 -0000	1.3
+++ testuta.c	24 Jan 2005 08:49:58 -0000
@@ -185,7 +185,7 @@ main (int argc, char **argv)
     uta = art_uta_from_irect (&bbox);
   }
 #endif
-  rbuf = 0;
+  rbuf = NULL;
 #else
   uta = art_uta_new_coords (0, 0, 500, 500);
 
Cheers
Kjartan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]