Remove redundant NULL checks from general_composite_rect().
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>
Fri, 19 Jun 2009 14:29:11 +0000 (17:29 +0300)
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>
Sun, 21 Jun 2009 09:32:35 +0000 (12:32 +0300)
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.

pixman/pixman-general.c

index bdb6550..3bd850a 100644 (file)
@@ -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;