[goffice] Compilation: kill some warnings.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Compilation: kill some warnings.
- Date: Tue, 1 Jan 2013 18:34:20 +0000 (UTC)
commit 91d18e38c3ccb2e7e8e12bc951982ce1355da61a
Author: Morten Welinder <terra gnome org>
Date: Tue Jan 1 13:34:00 2013 -0500
Compilation: kill some warnings.
ChangeLog | 9 +++++++++
goffice/graph/gog-chart-map.c | 4 +---
goffice/graph/gog-guru.c | 19 +++++++++----------
goffice/gtk/go-locale-sel.c | 11 ++++++-----
goffice/math/go-regression.c | 2 --
5 files changed, 25 insertions(+), 20 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index dfc7a5e..afe3a41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-01-01 Morten Welinder <terra gnome org>
+
+ * goffice/graph/gog-chart-map.c (polar_make_path_step): Remove
+ unused variables.
+ * goffice/math/go-regression.c (general_linear_regression): Ditto.
+ * goffice/graph/gog-guru.c (cb_key_press_event): Ditto.
+ * goffice/gtk/go-locale-sel.c (ls_get_property, ls_set_property):
+ Ditto.
+
2012-12-18 Morten Welinder <terra gnome org>
* configure.in: Post-release bump.
diff --git a/goffice/graph/gog-chart-map.c b/goffice/graph/gog-chart-map.c
index 79f5ebb..d0a9949 100644
--- a/goffice/graph/gog-chart-map.c
+++ b/goffice/graph/gog-chart-map.c
@@ -682,7 +682,7 @@ polar_make_path_step (GogChartMap *map, double const *x, double const *y, int n_
GogChartMapPolarData *polar_parms;
GOPath *path;
int i, n_valid_points = 0;
- double xx, yy, last_xx = 0.0, last_yy = 0.0;
+ double xx, yy;
double cx, cy, rx, ry;
double rho, rho_min, rho_max, theta, last_rho = 0.0, last_theta = 0.0;
gboolean is_inverted;
@@ -750,8 +750,6 @@ polar_make_path_step (GogChartMap *map, double const *x, double const *y, int n_
g_assert_not_reached ();
break;
}
- last_xx = xx;
- last_yy = yy;
last_theta = theta;
last_rho = rho;
} else if (!skip_invalid)
diff --git a/goffice/graph/gog-guru.c b/goffice/graph/gog-guru.c
index 4723f9d..254a8e0 100644
--- a/goffice/graph/gog-guru.c
+++ b/goffice/graph/gog-guru.c
@@ -270,7 +270,6 @@ cb_key_press_event (G_GNUC_UNUSED GtkWidget *wrapper,
GdkEventKey *event,
GraphGuruTypeSelector *typesel)
{
- GtkCornerType corner;
int col, row;
double x, y;
GogPlotType const *type = g_object_get_data (
@@ -281,24 +280,24 @@ cb_key_press_event (G_GNUC_UNUSED GtkWidget *wrapper,
col = type->col;
row = type->row;
- switch (event->keyval){
- case GDK_KEY_KP_Left: case GDK_KEY_Left:
- corner = GTK_CORNER_BOTTOM_RIGHT;
+ switch (event->keyval) {
+ case GDK_KEY_KP_Left:
+ case GDK_KEY_Left:
--col;
break;
- case GDK_KEY_KP_Up: case GDK_KEY_Up:
- corner = GTK_CORNER_BOTTOM_RIGHT;
+ case GDK_KEY_KP_Up:
+ case GDK_KEY_Up:
--row;
break;
- case GDK_KEY_KP_Right: case GDK_KEY_Right:
- corner = GTK_CORNER_TOP_LEFT;
+ case GDK_KEY_KP_Right:
+ case GDK_KEY_Right:
++col;
break;
- case GDK_KEY_KP_Down: case GDK_KEY_Down:
- corner = GTK_CORNER_TOP_LEFT;
+ case GDK_KEY_KP_Down:
+ case GDK_KEY_Down:
++row;
break;
diff --git a/goffice/gtk/go-locale-sel.c b/goffice/gtk/go-locale-sel.c
index bd0acad..89fe4b1 100644
--- a/goffice/gtk/go-locale-sel.c
+++ b/goffice/gtk/go-locale-sel.c
@@ -780,8 +780,9 @@ ls_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
- GOLocaleSel *ls;
- ls = GO_LOCALE_SEL (object);
+#if 0
+ GOLocaleSel *ls = GO_LOCALE_SEL (object);
+#endif
switch (prop_id)
{
@@ -798,9 +799,9 @@ ls_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
- GOLocaleSel *ls;
-
- ls = GO_LOCALE_SEL (object);
+#if 0
+ GOLocaleSel *ls = GO_LOCALE_SEL (object);
+#endif
switch (prop_id)
{
diff --git a/goffice/math/go-regression.c b/goffice/math/go-regression.c
index e6b3a3c..c2ebfb6 100644
--- a/goffice/math/go-regression.c
+++ b/goffice/math/go-regression.c
@@ -850,7 +850,6 @@ SUFFIX(general_linear_regression) (CONSTMATRIX xss, int xdim,
}
if (has_result) {
- GORegressionResult err2;
QUAD *inv = g_new (QUAD, xdim);
int err;
int k;
@@ -900,7 +899,6 @@ SUFFIX(general_linear_regression) (CONSTMATRIX xss, int xdim,
}
stat_->var = SUFFIX(go_quad_value) (&N2);
- err2 = GO_REG_ok;
stat_->se = g_new (DOUBLE, xdim);
for (k = 0; k < xdim; k++) {
/* Solve R^T z = e_k */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]