[goffice] Fixed warnings.



commit 91447bcf547e67aeb12c1fd1643d90ee087b08e3
Author: Jean Brefort <jean brefort normalesup org>
Date:   Wed May 22 11:05:25 2013 +0200

    Fixed warnings.

 ChangeLog                      |    8 ++++++++
 goffice/goffice.c              |    2 ++
 goffice/graph/gog-view.h       |    2 +-
 goffice/gtk/go-combo-box.h     |    2 +-
 goffice/math/go-R.h            |    4 ++--
 goffice/utils/go-glib-extras.c |   10 ++++++++++
 6 files changed, 24 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4e7a5ee..0a61c03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2013-05-22  Jean Brefort  <jean brefort normalesup org>
+
+       * goffice/goffice.c (libgoffice_init): fixed warnings.
+       * goffice/graph/gog-view.h: ditto.
+       * goffice/gtk/go-combo-box.h: ditto.
+       * goffice/math/go-R.h: ditto.
+       * goffice/utils/go-glib-extras.c: ditto.
+
 2013-05-21  Morten Welinder  <terra gnome org>
 
        * goffice/goffice.c (libgoffice_init): Install the unknown_image
diff --git a/goffice/goffice.c b/goffice/goffice.c
index 0baa817..0adf407 100644
--- a/goffice/goffice.c
+++ b/goffice/goffice.c
@@ -197,7 +197,9 @@ libgoffice_init (void)
 
        bindtextdomain (GETTEXT_PACKAGE, libgoffice_locale_dir);
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+#if (!GLIB_CHECK_VERSION (2, 36, 0))
        g_type_init ();
+#endif
        gsf_init ();
 
        _go_string_init ();
diff --git a/goffice/graph/gog-view.h b/goffice/graph/gog-view.h
index 3713d72..b8c10c2 100644
--- a/goffice/graph/gog-view.h
+++ b/goffice/graph/gog-view.h
@@ -85,7 +85,7 @@ typedef struct {
        unsigned clip;  /* Automaticaly clip to object bounding box */
 
        /* Virtuals */
-       void     (*state_init)    (GogView *);
+       void     (*state_init)    (GogView *view);
        void     (*padding_request)             (GogView *view, GogViewAllocation const *bbox,
                                                 GogViewPadding *padding);
        void     (*size_request)                (GogView *view, GogViewRequisition const *available,
diff --git a/goffice/gtk/go-combo-box.h b/goffice/gtk/go-combo-box.h
index 937073e..3289155 100644
--- a/goffice/gtk/go-combo-box.h
+++ b/goffice/gtk/go-combo-box.h
@@ -53,7 +53,7 @@ struct _GOComboBoxClass {
 
        /* invoked when the popup has been hidden, if the signal
         * returns TRUE, it means it should be killed */
-       gboolean   (*pop_down_done)   (GOComboBox *combo, GtkWidget *);
+       gboolean   (*pop_down_done)   (GOComboBox *combo, GtkWidget *w);
 };
 
 /* public */
diff --git a/goffice/math/go-R.h b/goffice/math/go-R.h
index 8285c27..c882fd2 100644
--- a/goffice/math/go-R.h
+++ b/goffice/math/go-R.h
@@ -24,7 +24,7 @@
 
 G_BEGIN_DECLS
 
-double go_trunc (double);
+double go_trunc (double x);
 double go_dnorm (double x, double mu, double sigma, gboolean give_log);
 double go_pnorm (double x, double mu, double sigma, gboolean lower_tail, gboolean log_p);
 void go_pnorm_both (double x, double *cum, double *ccum, int i_tail, gboolean log_p);
@@ -41,7 +41,7 @@ double go_qcauchy (double p, double location, double scale, gboolean lower_tail,
 
 #ifdef GOFFICE_WITH_LONG_DOUBLE
 
-long double go_truncl (long double);
+long double go_truncl (long double x);
 long double go_dnorml (long double x, long double mu, long double sigma, gboolean give_log);
 long double go_pnorml (long double x, long double mu, long double sigma, gboolean lower_tail, gboolean 
log_p);
 void go_pnorm_bothl (long double x, long double *cum, long double *ccum, int i_tail, gboolean log_p);
diff --git a/goffice/utils/go-glib-extras.c b/goffice/utils/go-glib-extras.c
index 8cf84d8..f880d26 100644
--- a/goffice/utils/go-glib-extras.c
+++ b/goffice/utils/go-glib-extras.c
@@ -66,6 +66,16 @@ go_hash_keys (GHashTable *hash)
 }
 
 /***************************************************************************/
+
+/**
+ * go_ptr_array_insert:
+ * @array: (element-type void): a #GPtrArray
+ * @value: the pointer to insert
+ * @index: where to insert @value
+ *
+ * Inserts a pointer inside an existing array.
+ **/
+ 
 void
 go_ptr_array_insert (GPtrArray *array, gpointer value, int index)
 {


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