[gnumeric] Fixed compiler warnings.



commit 2997d1ac72459becb337462cb2515238fdfff2ee
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Feb 24 16:17:32 2013 +0100

    Fixed compiler warnings.

 plugins/excel/ChangeLog           |    6 ++++++
 plugins/excel/ms-chart.c          |    4 ++--
 plugins/excel/xlsx-read-drawing.c |    2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 3c3f8e6..04bbad0 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,9 @@
+2013-02-24  Jean Brefort  <jean brefort normalesup org>
+
+       * ms-chart.c (get_style), (ms_excel_chart_read): add explicit casts to
+       fix some warnings.
+       * xlsx-read-drawing.c (xlsx_style_line_start): ditto.
+
 2013-02-22  Morten Welinder  <terra gnome org>
 
        * ms-excel-write.c (gather_styles): Use sheet_cells, not
diff --git a/plugins/excel/ms-chart.c b/plugins/excel/ms-chart.c
index 4cf2bed..10932bc 100644
--- a/plugins/excel/ms-chart.c
+++ b/plugins/excel/ms-chart.c
@@ -182,7 +182,7 @@ static void
 BC_R(get_style) (XLChartReadState *s)
 {
        if (s->style == NULL)
-               s->style = gog_style_new ();
+               s->style = (GOStyle *) gog_style_new ();
 }
 
 static int
@@ -3582,7 +3582,7 @@ ms_excel_chart_read (BiffQuery *q, MSContainer *container,
                state.chart = GOG_CHART (gog_object_add_by_name (GOG_OBJECT (state.graph), "Chart", NULL));
 
                if (NULL != full_page) {
-                       GOStyle *style = gog_style_new ();
+                       GOStyle *style = (GOStyle *) gog_style_new ();
                        style->line.width = 0;
                        style->line.dash_type = GO_LINE_NONE;
                        style->fill.type = GO_STYLE_FILL_NONE;
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index 21cc86a..5bf0d73 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -1153,7 +1153,7 @@ xlsx_style_line_start (GsfXMLIn *xin, xmlChar const **attrs)
        XLSXReadState   *state = (XLSXReadState *)xin->user_state;
        state->sp_type |= GO_STYLE_LINE;
        if (!state->cur_style)
-               state->cur_style = gog_style_new ();
+               state->cur_style = (GOStyle *) gog_style_new ();
        state->gocolor = &state->cur_style->line.color;
 }
 


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