[dia] [scan-build] Value stored to 'stride' is never read
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Value stored to 'stride' is never read
- Date: Sun, 7 Sep 2014 18:49:56 +0000 (UTC)
commit e1fa449b644413cf590f6d6645432977df58cfb6
Author: Hans Breuer <hans breuer org>
Date: Sun Sep 7 20:28:06 2014 +0200
[scan-build] Value stored to 'stride' is never read
render_libart.c: In function 'draw_pixel_rect':
render_libart.c:399:7: warning: variable 'stride' set but not used [-Wunused-but-set-variable]
int stride;
^
render_libart.c:405:3: warning: Value stored to 'stride' is never read
stride = renderer->pixel_width*3;
^ ~~~~~~~~~~~~~~~~~~~~~~~
plug-ins/libart/render_libart.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/libart/render_libart.c b/plug-ins/libart/render_libart.c
index db54e1f..94842cc 100644
--- a/plug-ins/libart/render_libart.c
+++ b/plug-ins/libart/render_libart.c
@@ -396,14 +396,11 @@ draw_pixel_rect(DiaRenderer *self,
DiaLibartRenderer *renderer = DIA_LIBART_RENDERER (self);
guint8 r,g,b;
int start, len;
- int stride;
r = color->red*0xff;
g = color->green*0xff;
b = color->blue*0xff;
- stride = renderer->pixel_width*3;
-
/* clip in x */
start = x;
len = width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]