• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Revisione1fa449b644413cf590f6d6645432977df58cfb6 (tree)
Time2014-09-08 03:28:06
AuthorHans Breuer <hans@breu...>
CommiterHans Breuer

Log Message

[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;
~

Change Summary

Incremental Difference

--- a/plug-ins/libart/render_libart.c
+++ b/plug-ins/libart/render_libart.c
@@ -396,14 +396,11 @@ draw_pixel_rect(DiaRenderer *self,
396396 DiaLibartRenderer *renderer = DIA_LIBART_RENDERER (self);
397397 guint8 r,g,b;
398398 int start, len;
399- int stride;
400399
401400 r = color->red*0xff;
402401 g = color->green*0xff;
403402 b = color->blue*0xff;
404403
405- stride = renderer->pixel_width*3;
406-
407404 /* clip in x */
408405 start = x;
409406 len = width;