[gnumeric] quieten warning
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] quieten warning
- Date: Tue, 3 May 2011 22:57:36 +0000 (UTC)
commit f88b8ed2ba11af79f68131453636fcec6d4fc2be
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Tue May 3 16:52:52 2011 -0600
quieten warning
2011-05-03 Andreas J. Guelzow <aguelzow pyrshep ca>
* ms-chart.c (chart_write_LEGEND): disable -Wswitch for this function
plugins/excel/ChangeLog | 10 ++++++++--
plugins/excel/ms-chart.c | 16 ++++++++++++++++
2 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 8e3e9dc..e6a21ca 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,8 +1,14 @@
+2011-05-03 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * ms-chart.c (chart_write_LEGEND): disable -Wswitch for this function
+
2011-05-03 Jean Brefort <jean brefort normalesup org>
- * xlsx-read-drawing.c (xlsx_style_line_start): don't crash on NULL style,
+ * xlsx-read-drawing.c (xlsx_style_line_start): don't crash on NULL
+ style,
(cb_axis_set_position): fix axis crossing position.
- * xlsx-write-drawing.c (xlsx_write_chart): partially fix circular axis position.
+ * xlsx-write-drawing.c (xlsx_write_chart): partially fix circular
+ axis position.
2011-04-08 Jean Brefort <jean brefort normalesup org>
diff --git a/plugins/excel/ms-chart.c b/plugins/excel/ms-chart.c
index 56039a7..fbb32f9 100644
--- a/plugins/excel/ms-chart.c
+++ b/plugins/excel/ms-chart.c
@@ -5259,6 +5259,15 @@ chart_write_DROPBAR (XLChartWriteState *s)
g_object_unref (s->dp_style);
}
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+#pragma GCC diagnostic push
+#endif
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
+#pragma GCC diagnostic ignored "-Wswitch"
+ /* Suppressing the warning about the case values not be named */
+ /* GogObjectPosition enum values */
+#endif
+
static void
chart_write_LEGEND (XLChartWriteState *s, GogObject const *legend)
{
@@ -5292,6 +5301,13 @@ chart_write_LEGEND (XLChartWriteState *s, GogObject const *legend)
chart_write_text (s, NULL, NULL, 0);
chart_write_END (s);
}
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
+#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+#pragma GCC diagnostic pop
+#else
+#pragma GCC diagnostic warning "-Wswitch"
+#endif
+#endif
static void
chart_write_axis_sets (XLChartWriteState *s, GSList *sets)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]