pixman: Branch 'master'

M. Joonas Pihlaja joonas at kemper.freedesktop.org
Sun Jun 21 02:32:54 PDT 2009


 pixman/pixman-general.c |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit b7b6847b6692796a5da8590dd6254add6d566a7a
Author: M Joonas Pihlaja <jpihlaja at cc.helsinki.fi>
Date:   Fri Jun 19 17:29:11 2009 +0300

    Remove redundant NULL checks from general_composite_rect().
    
    The general_composite_rect() function has two invocations
    of the return_if_fail() macro before any of its variable
    declarations.  Removing them allows for compilation to
    succeed using a pre-C99 compiler.

diff --git a/pixman/pixman-general.c b/pixman/pixman-general.c
index bdb6550..3bd850a 100644
--- a/pixman/pixman-general.c
+++ b/pixman/pixman-general.c
@@ -54,9 +54,6 @@ general_composite_rect  (pixman_implementation_t *imp,
 			 int32_t                  width,
 			 int32_t                  height)
 {
-    return_if_fail (src != NULL);
-    return_if_fail (dest != NULL);
-    
     uint8_t stack_scanline_buffer[SCANLINE_BUFFER_LENGTH * 3];
     const pixman_format_code_t srcFormat = src->type == BITS ? src->bits.format : 0;
     const pixman_format_code_t maskFormat = mask && mask->type == BITS ? mask->bits.format : 0;


More information about the xorg-commit mailing list