[dia] [warningectomy] Unused variables
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] Unused variables
- Date: Sun, 7 Sep 2014 19:08:36 +0000 (UTC)
commit 5797a02e4357b415a997a7f6781d0f62939755f1
Author: Hans Breuer <hans breuer org>
Date: Sun Sep 7 21:07:45 2014 +0200
[warningectomy] Unused variables
diapathrenderer.c: In function 'path_build_arc':
diapathrenderer.c:413:8: warning: unused variable 'ctl' [-Wunused-variable]
real ctl;
path-math.c: In function 'path_combine':
path-math.c:745:7: warning: unused variable 'total' [-Wunused-variable]
int total = 0;
^
path-math.c:744:13: warning: unused variable 'k' [-Wunused-variable]
int i, j, k;
^
path-math.c:744:10: warning: unused variable 'j' [-Wunused-variable]
int i, j, k;
^
path-math.c:744:7: warning: unused variable 'i' [-Wunused-variable]
int i, j, k;
^
diasvgrenderer.c: In function '_gradient_do':
diasvgrenderer.c:114:10: warning: unused variable 'name' [-Wunused-variable]
gchar *name = (gchar *)key;
^
box.c: In function 'box_draw':
box.c:322:8: warning: unused variable 'radius' [-Wunused-variable]
real radius;
^
shape-export.c: In function 'draw_polygon':
shape-export.c:418:10: warning: unused variable 'style' [-Wunused-variable]
gchar *style;
^
shape-export.c: In function 'add_rectangle_connection_points':
shape-export.c:446:9: warning: unused variable 'center' [-Wunused-variable]
Point center;
^
lib/diapathrenderer.c | 1 -
lib/diasvgrenderer.c | 1 -
lib/path-math.c | 2 --
objects/flowchart/box.c | 1 -
plug-ins/shape/shape-export.c | 2 --
5 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/lib/diapathrenderer.c b/lib/diapathrenderer.c
index 9367586..ebc5e40 100644
--- a/lib/diapathrenderer.c
+++ b/lib/diapathrenderer.c
@@ -410,7 +410,6 @@ path_build_arc (GArray *path,
real ar2;
int i, segs;
real ars;
- real ctl;
gboolean ccw = angle2 > angle1;
ar1 = (M_PI / 180.0) * angle1;
diff --git a/lib/diasvgrenderer.c b/lib/diasvgrenderer.c
index d148775..a001591 100644
--- a/lib/diasvgrenderer.c
+++ b/lib/diasvgrenderer.c
@@ -111,7 +111,6 @@ _gradient_do (gpointer key,
gpointer value,
gpointer user_data)
{
- gchar *name = (gchar *)key;
DiaPattern *pattern = (DiaPattern *)value;
GradientData *gd = (GradientData *)user_data;
DiaSvgRenderer *renderer = gd->renderer;
diff --git a/lib/path-math.c b/lib/path-math.c
index 7adf6f6..a9bef7f 100644
--- a/lib/path-math.c
+++ b/lib/path-math.c
@@ -741,8 +741,6 @@ path_combine (const GArray *p1,
PathCombineMode mode)
{
GArray *result = NULL;
- int i, j, k;
- int total = 0;
GArray *crossing = NULL;
GArray *one, *two;
static int debug = 0;
diff --git a/objects/flowchart/box.c b/objects/flowchart/box.c
index 0478aed..f9948f1 100644
--- a/objects/flowchart/box.c
+++ b/objects/flowchart/box.c
@@ -319,7 +319,6 @@ box_draw(Box *box, DiaRenderer *renderer)
DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
Point lr_corner;
Element *elem;
- real radius;
assert(box != NULL);
assert(renderer != NULL);
diff --git a/plug-ins/shape/shape-export.c b/plug-ins/shape/shape-export.c
index d3ae9a4..04726ad 100644
--- a/plug-ins/shape/shape-export.c
+++ b/plug-ins/shape/shape-export.c
@@ -415,7 +415,6 @@ draw_polygon(DiaRenderer *self,
Point center;
gchar px_buf[G_ASCII_DTOSTR_BUF_SIZE];
gchar py_buf[G_ASCII_DTOSTR_BUF_SIZE];
- gchar *style;
node = xmlNewChild(renderer->root, renderer->svg_name_space, (const xmlChar *)"polygon", NULL);
@@ -443,7 +442,6 @@ add_rectangle_connection_points (ShapeRenderer *renderer,
Point *ul_corner, Point *lr_corner, real r)
{
Point pos;
- Point center;
real width, height;
width = lr_corner->x - ul_corner->x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]