efl: Fix set but unused warnings
authorMike McCormack <mikem@atratus.org>
Mon, 19 Nov 2012 13:09:53 +0000 (13:09 +0000)
committerMike McCormack <mikem@ring3k.org>
Mon, 19 Nov 2012 13:09:53 +0000 (13:09 +0000)
Unfortunately setting unused variable to zero still produces
a warning about variables being set but not used (on gcc 4.6.3).

Signed-off-by: Mike McCormack <mikem@atratus.org>
SVN revision: 79445

src/modules/evas/engines/software_x11/evas_x_egl.c

index 38ded34..ef3516e 100644 (file)
@@ -277,7 +277,19 @@ evas_software_egl_outbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth,
                                  int grayscale, int max_colors, Pixmap mask,
                                  int shape_dither, int destination_alpha)
 {
+   (void) w;
+   (void) h;
+   (void) rot;
+   (void) depth;
+   (void) draw;
+   (void) cmap;
+   (void) x_depth;
+   (void) grayscale;
+   (void) max_colors;
+   (void) mask;
+   (void) shape_dither;
+   (void) destination_alpha;
+   (void) disp;
+   (void) vis;
    return NULL;
-   w = h = rot = depth = draw = cmap = x_depth = grayscale = max_colors = mask = shape_dither = destination_alpha = 0;
-   disp = NULL; vis = NULL;
 }