[cairo-commit] cairo/test cairo-test.c,1.77,1.78

Christian Biesinger commit at pdx.freedesktop.org
Sat Jan 21 09:39:14 PST 2006


Committed by: biesi

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv22658/test

Modified Files:
	cairo-test.c 
Log Message:
2006-01-21  Christian Biesinger  <cbiesinger at web.de>

	* pixman/src/fbpict.c: (detectCPUFeatures):
	* src/cairo-paginated-surface.c:
	(_cairo_paginated_surface_get_target):
	* test/cairo-test.c: (create_image_surface):

	Don't mix declarations and code. This makes the code valid ISO C,
	fixes a gcc -pedantic warning, and unbreaks the build with the
	compiler Zeta ships with.


Index: cairo-test.c
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo-test.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- cairo-test.c	20 Jan 2006 01:48:23 -0000	1.77
+++ cairo-test.c	21 Jan 2006 17:39:11 -0000	1.78
@@ -190,8 +190,8 @@
 		      cairo_content_t	  content,
 		      void		**closure)
 {
-    *closure = NULL;
     cairo_format_t format;
+    *closure = NULL;
 
     if (content == CAIRO_CONTENT_COLOR_ALPHA) {
 	format = CAIRO_FORMAT_ARGB32;



More information about the cairo-commit mailing list