作図ソフト dia の改良版
Revision | e1fa449b644413cf590f6d6645432977df58cfb6 (tree) |
---|---|
Time | 2014-09-08 03:28:06 |
Author | Hans Breuer <hans@breu...> |
Commiter | Hans Breuer |
[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]
render_libart.c:405:3: warning: Value stored to 'stride' is never read
@@ -396,14 +396,11 @@ draw_pixel_rect(DiaRenderer *self, | ||
396 | 396 | DiaLibartRenderer *renderer = DIA_LIBART_RENDERER (self); |
397 | 397 | guint8 r,g,b; |
398 | 398 | int start, len; |
399 | - int stride; | |
400 | 399 | |
401 | 400 | r = color->red*0xff; |
402 | 401 | g = color->green*0xff; |
403 | 402 | b = color->blue*0xff; |
404 | 403 | |
405 | - stride = renderer->pixel_width*3; | |
406 | - | |
407 | 404 | /* clip in x */ |
408 | 405 | start = x; |
409 | 406 | len = width; |