Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/dropshadow


Modified Files:
        e_mod_main.c 


Log Message:
Compiler warnings.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e/src/modules/dropshadow/e_mod_main.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_mod_main.c        29 Mar 2005 06:24:58 -0000      1.10
+++ e_mod_main.c        30 Mar 2005 11:52:31 -0000      1.11
@@ -46,7 +46,6 @@
 static void        _ds_shadow_shaperects(Shadow *sh);
 static int         _ds_shadow_reshape(void *data);
 static void        _ds_shadow_recalc(Shadow *sh);
-static void        _ds_shadow_object_pixels_set(Evas_Object *o, unsigned char 
*pix, int pix_w, int pix_h, int sx, int sy, int sw, int sh);
 static void        _ds_config_darkness_set(Dropshadow *ds, double v);
 static void        _ds_config_shadow_xy_set(Dropshadow *ds, int x, int y);
 static void        _ds_config_blur_set(Dropshadow *ds, int blur);
@@ -55,7 +54,7 @@
 static void        _ds_gauss_blur_h(unsigned char *pix, unsigned char 
*pix_dst, int pix_w, int pix_h, unsigned char *lut, int blur, int rx, int ry, 
int rxx, int ryy);
 static void        _ds_gauss_blur_v(unsigned char *pix, unsigned char 
*pix_dst, int pix_w, int pix_h, unsigned char *lut, int blur, int rx, int ry, 
int rxx, int ryy);
 static Shpix      *_ds_shpix_new(int w, int h);
-static Shpix      *_ds_shpix_free(Shpix *sp);
+static void        _ds_shpix_free(Shpix *sp);
 static void        _ds_shpix_fill(Shpix *sp, int x, int y, int w, int h, 
unsigned char val);
 static void        _ds_shpix_blur(Shpix *sp, int x, int y, int w, int h, 
unsigned char *blur_lut, int blur_size);
 static void        _ds_shpix_object_set(Shpix *sp, Evas_Object *o, int x, int 
y, int w, int h);
@@ -830,7 +829,6 @@
    if ((rects) || (sh->toosmall))
      {
        Evas_List *l;
-       E_Rect *r;
        Shpix *sp;
        int shw, shh, bsz, shx, shy;
        
@@ -1301,7 +1299,7 @@
    return sp;
 }
 
-static Shpix *
+static void
 _ds_shpix_free(Shpix *sp)
 {
    if (!sp) return;
@@ -1563,26 +1561,26 @@
    unsigned int *p2;
    int xx, yy, jump;
 
-   if (!sp) return;
+   if (!sp) return NULL;
    
-   if ((w < 1) || (h < 1)) return;
+   if ((w < 1) || (h < 1)) return NULL;
    
    if (x < 0)
      {
        w += x;
        x = 0;
-       if (w < 1) return;
+       if (w < 1) return NULL;
      }
-   if (x >= sp->w) return;
+   if (x >= sp->w) return NULL;
    if ((x + w) > (sp->w)) w = sp->w - x;
    
    if (y < 0)
      {
        h += y;
        y = 0;
-       if (h < 1) return;
+       if (h < 1) return NULL;
      }
-   if (y >= sp->h) return;
+   if (y >= sp->h) return NULL;
    if ((y + h) > (sp->h)) h = sp->h - y;
 
    st = calloc(1, sizeof(Shstore));




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to