summaryrefslogtreecommitdiff
path: root/pango-view
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-06-17 17:08:35 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-06-17 17:08:35 -0400
commita0296ccbdd570b66a36bf4226760aed312d020d4 (patch)
tree950a42281d637512381f147eccf01d4f05ffc19f /pango-view
parent26092c20b0936ff669513fbd64537123b99d036e (diff)
downloadpango-a0296ccbdd570b66a36bf4226760aed312d020d4.tar.gz
Bug 652841 - Various pieces of dead code found by gcc/clang static analyzer
Diffstat (limited to 'pango-view')
-rw-r--r--pango-view/viewer-pangoft2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango-view/viewer-pangoft2.c b/pango-view/viewer-pangoft2.c
index 2699b740..87973c80 100644
--- a/pango-view/viewer-pangoft2.c
+++ b/pango-view/viewer-pangoft2.c
@@ -133,7 +133,7 @@ pangoft2_view_write (gpointer instance G_GNUC_UNUSED,
int width,
int height)
{
- int row, bytes;
+ int row;
FT_Bitmap *bitmap = (FT_Bitmap *) surface;
/* Write it as pgm to output */
@@ -142,7 +142,7 @@ pangoft2_view_write (gpointer instance G_GNUC_UNUSED,
"%d %d\n"
"255\n", width, height);
for (row = 0; row < height; row++)
- bytes = fwrite(bitmap->buffer + row * bitmap->pitch, 1, width, stream);
+ fwrite (bitmap->buffer + row * bitmap->pitch, 1, width, stream);
}
const PangoViewer pangoft2_viewer = {