[gnumeric] Compilations: fix warnings.



commit 3b6315a32841eaba176e4e35c43a4e411f007882
Author: Morten Welinder <terra gnome org>
Date:   Thu Jul 30 20:59:34 2020 -0400

    Compilations: fix warnings.

 src/dialogs/dialog-analysis-tool-wilcoxon-mann-whitney.c | 2 ++
 src/dialogs/dialog-random-generator-cor.c                | 3 +--
 src/dialogs/dialog-random-generator.c                    | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/dialog-analysis-tool-wilcoxon-mann-whitney.c 
b/src/dialogs/dialog-analysis-tool-wilcoxon-mann-whitney.c
index 5e1cf99d41..36d9ef4037 100644
--- a/src/dialogs/dialog-analysis-tool-wilcoxon-mann-whitney.c
+++ b/src/dialogs/dialog-analysis-tool-wilcoxon-mann-whitney.c
@@ -52,12 +52,14 @@
 
 #define WILCOXON_MANN_WHITNEY_KEY "analysistools-principal-components-dialog"
 
+#if 0
 static char const * const grouped_by_group[] = {
        "grouped_by_row",
        "grouped_by_col",
        "grouped_by_area",
        NULL
 };
+#endif
 
 static void
 wilcoxon_mann_whitney_tool_update_sensitivity_cb (G_GNUC_UNUSED GtkWidget *dummy,
diff --git a/src/dialogs/dialog-random-generator-cor.c b/src/dialogs/dialog-random-generator-cor.c
index 4c01f44e27..70bf0c62a5 100644
--- a/src/dialogs/dialog-random-generator-cor.c
+++ b/src/dialogs/dialog-random-generator-cor.c
@@ -143,12 +143,11 @@ random_cor_tool_ok_clicked_cb (GtkWidget *button, RandomCorToolState *state)
 {
        data_analysis_output_t  *dao;
        tools_data_random_cor_t  *data;
-       gint err;
 
        data = g_new0 (tools_data_random_cor_t, 1);
 
        dao  = parse_output ((GnmGenericToolState *)state, NULL);
-       err = entry_to_int (GTK_ENTRY (state->count_entry), &data->count, FALSE);
+       (void)entry_to_int (GTK_ENTRY (state->count_entry), &data->count, FALSE);
        data->matrix = gnm_expr_entry_parse_as_value
                (GNM_EXPR_ENTRY (state->base.input_entry),
                 state->base.sheet);
diff --git a/src/dialogs/dialog-random-generator.c b/src/dialogs/dialog-random-generator.c
index 976385646c..d1a0ad6a6c 100644
--- a/src/dialogs/dialog-random-generator.c
+++ b/src/dialogs/dialog-random-generator.c
@@ -692,6 +692,7 @@ random_tool_ok_clicked_cb (GtkWidget *button, RandomToolState *state)
                                     &data->param.uniform.upper_limit, TRUE);
                break;
        }
+       (void)err;
 
        if (!cmd_analysis_tool (GNM_WBC (state->base.wbcg),
                                state->base.sheet,


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