[cairo-commit] src/cairo-raster-source-pattern.c

Andrea Canciani ranma42 at kemper.freedesktop.org
Sun Jan 15 09:05:07 PST 2012


 src/cairo-raster-source-pattern.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 11493eea9bcf2f100f25fc771533b79cf245be63
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Sun Jan 15 16:49:08 2012 +0100

    raster-source: Do not return value in void function
    
    Both MSVC and Sun Studio Compiler complain about void values being
    returned.
    
    Fixes:
    cairo-raster-source-pattern.c(93) : warning C4098:
    '_cairo_raster_source_pattern_release' : 'void' function returning a
    value

diff --git a/src/cairo-raster-source-pattern.c b/src/cairo-raster-source-pattern.c
index 940b297..f096862 100644
--- a/src/cairo-raster-source-pattern.c
+++ b/src/cairo-raster-source-pattern.c
@@ -89,8 +89,7 @@ _cairo_raster_source_pattern_release (const cairo_pattern_t *abstract_pattern,
     if (pattern->release == NULL)
 	return;
 
-    return pattern->release (&pattern->base, pattern->user_data,
-			     surface);
+    pattern->release (&pattern->base, pattern->user_data, surface);
 }
 
 cairo_status_t


More information about the cairo-commit mailing list