Don't try to return a value (even a void value) from a void function. Closes bug #2931.

This commit is contained in:
Carl Worth 2005-04-08 04:43:06 +00:00
parent 43435b69e1
commit 745627ff1b
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2005-04-08 Carl Worth <cworth@cworth.org>
* src/cairo-matrix.c (cairo_matrix_init_identity): Don't try to
return a value (even a void value) from a void function. Closes
bug #2931.
2005-04-07 Carl Worth <cworth@cworth.org>
* src/cairo-wideint.h: Remove broken code for defining

View file

@ -117,10 +117,10 @@ slim_hidden_def(cairo_matrix_copy);
void
cairo_matrix_init_identity (cairo_matrix_t *matrix)
{
return cairo_matrix_init (matrix,
1, 0,
0, 1,
0, 0);
cairo_matrix_init (matrix,
1, 0,
0, 1,
0, 0);
}
slim_hidden_def(cairo_matrix_init_identity);
DEPRECATE(cairo_matrix_set_identity, cairo_matrix_init_identity);