summaryrefslogtreecommitdiff
path: root/examples
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 /examples
parent26092c20b0936ff669513fbd64537123b99d036e (diff)
downloadpango-a0296ccbdd570b66a36bf4226760aed312d020d4.tar.gz
Bug 652841 - Various pieces of dead code found by gcc/clang static analyzer
Diffstat (limited to 'examples')
-rw-r--r--examples/cairoshape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cairoshape.c b/examples/cairoshape.c
index f668e92d..d288db14 100644
--- a/examples/cairoshape.c
+++ b/examples/cairoshape.c
@@ -58,12 +58,12 @@ mini_svg_render (MiniSvg *shape,
double x, y;
const char *p;
char op[2];
- int items, len;
+ int len;
cairo_get_current_point (cr, &x, &y);
cairo_translate (cr, x, y);
- for (p = shape->path; (items = sscanf (p, "%1s %n", op, &len)), p += len, *p;)
+ for (p = shape->path; sscanf (p, "%1s %n", op, &len), p += len, *p;)
switch (*op)
{
case 'M':