[gnumeric] Compilation: kill warning.



commit 12f5317bf4cef6511989ed76c2195576daaca84c
Author: Morten Welinder <terra gnome org>
Date:   Sat Mar 2 16:29:13 2013 -0500

    Compilation: kill warning.

 plugins/nlsolve/ChangeLog     |    4 ++++
 plugins/nlsolve/gnm-nlsolve.c |    2 --
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/nlsolve/ChangeLog b/plugins/nlsolve/ChangeLog
index 64f2327..d7ec10f 100644
--- a/plugins/nlsolve/ChangeLog
+++ b/plugins/nlsolve/ChangeLog
@@ -1,3 +1,7 @@
+2013-03-02  Morten Welinder  <terra gnome org>
+
+       * gnm-nlsolve.c (polish_iter): Remove variable "all".
+
 2012-12-18  Morten Welinder <terra gnome org>
 
        * Release 1.12.0
diff --git a/plugins/nlsolve/gnm-nlsolve.c b/plugins/nlsolve/gnm-nlsolve.c
index 6d9d5fe..011f869 100644
--- a/plugins/nlsolve/gnm-nlsolve.c
+++ b/plugins/nlsolve/gnm-nlsolve.c
@@ -621,7 +621,6 @@ polish_iter (GnmNlsolve *nl)
 
        x = g_new (gnm_float, n);
        for (step = gnm_pow2 (-10); step > GNM_EPSILON; step *= 0.75) {
-               gboolean any = FALSE;
                int c, s;
 
                for (c = 0; c < n; c++) {
@@ -640,7 +639,6 @@ polish_iter (GnmNlsolve *nl)
                                if (y < nl->yk && gnm_solver_check_constraints (sol))  {
                                        nl->yk = y;
                                        memcpy (nl->xk, x, n * sizeof (gnm_float));
-                                       any = TRUE;
                                        any_at_all = TRUE;
                                        if (nl->debug)
                                                g_printerr ("Polish step %.15" GNM_FORMAT_g


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]