From df5f404f090591421278a631e0159be583d2052e Mon Sep 17 00:00:00 2001 From: Prince Kumar Dubey Date: Fri, 13 Oct 2017 12:14:20 -0700 Subject: [PATCH] evas: to avoid warning unused variable and unnecessary assignment is removed. Reviewers: raster, cedric Subscribers: rajeshps, jpeg Differential Revision: https://phab.enlightenment.org/D5305 Signed-off-by: Cedric Bail --- src/modules/evas/engines/software_x11/evas_xlib_color.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/software_x11/evas_xlib_color.c b/src/modules/evas/engines/software_x11/evas_xlib_color.c index 4070c48..a016bb5 100644 --- a/src/modules/evas/engines/software_x11/evas_xlib_color.c +++ b/src/modules/evas/engines/software_x11/evas_xlib_color.c @@ -41,11 +41,14 @@ x_color_alloc_rgb(int nr, int ng, int nb, Display *d, Colormap cmap, Visual *v) { int r, g, b, i; DATA8 *color_lut; - int sig_mask = 0, delt = 0; + int delt = 0; +/* + int sig_mask = 0; for (i = 0; i < v->bits_per_rgb; i++) sig_mask |= (0x1 << i); sig_mask <<= (16 - v->bits_per_rgb); +*/ i = 0; color_lut = malloc((nr) * (ng) * (nb)); if (!color_lut) return NULL; -- 2.7.4