[Gnucash-changes] Fix problems made visible by re-enabling -Werror.
David Hampton
hampton at cvs.gnucash.org
Sat Apr 30 12:41:27 EDT 2005
Log Message:
-----------
Fix problems made visible by re-enabling -Werror.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash/src/gnome:
dialog-totd.c
gw-gnc-spec.scm
gnucash/src/gnome-utils:
gnc-html-graph-gog.c
Revision Data
-------------
Index: dialog-totd.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/dialog-totd.c,v
retrieving revision 1.13.4.4
retrieving revision 1.13.4.5
diff -Lsrc/gnome/dialog-totd.c -Lsrc/gnome/dialog-totd.c -u -r1.13.4.4 -r1.13.4.5
--- src/gnome/dialog-totd.c
+++ src/gnome/dialog-totd.c
@@ -142,10 +142,9 @@
static gboolean
gnc_totd_initialize (void)
{
- gchar *filename, *contents, *from, *to, *new;
+ gchar *filename, *contents, *new;
gsize length;
GError *error;
- gint i, len;
/* Find the file */
filename = gnc_gnome_locate_data_file("tip_of_the_day.list");
Index: gw-gnc-spec.scm
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/gw-gnc-spec.scm,v
retrieving revision 1.14.4.8
retrieving revision 1.14.4.9
diff -Lsrc/gnome/gw-gnc-spec.scm -Lsrc/gnome/gw-gnc-spec.scm -u -r1.14.4.8 -r1.14.4.9
--- src/gnome/gw-gnc-spec.scm
+++ src/gnome/gw-gnc-spec.scm
@@ -52,6 +52,8 @@
"#include <dialog-scheduledxaction.h>\n"
"#include <dialog-sxsincelast.h>\n" )))
+ (gw:wrap-as-wct ws '<gtk:Window*> "GtkWindow*" "const GtkWindow*")
+
(gw:wrap-function
ws
'gnc:ui-hierarchy-druid
@@ -185,7 +187,7 @@
'gnc:totd_dialog
'<gw:void>
"gnc_totd_dialog"
- '((<gnc:UIWidget> parent) (<gw:bool> is_startup))
+ '((<gtk:Window*> parent) (<gw:bool> is_startup))
"Show the \"Tip Of The Day\" dialog.")
(gw:wrap-as-wct ws
Index: gnc-html-graph-gog.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/Attic/gnc-html-graph-gog.c,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -Lsrc/gnome-utils/gnc-html-graph-gog.c -Lsrc/gnome-utils/gnc-html-graph-gog.c -u -r1.1.4.1 -r1.1.4.2
--- src/gnome-utils/gnc-html-graph-gog.c
+++ src/gnome-utils/gnc-html-graph-gog.c
@@ -102,6 +102,7 @@
return retval;
}
+#if 0
static void
free_strings(char ** strings, int nstrings) {
int count;
@@ -114,6 +115,7 @@
}
g_free(strings);
}
+#endif
static void
addPixbufGraphWidget( GtkHTMLEmbedded *eb, GogObject *graph )
@@ -211,7 +213,7 @@
NULL);
gog_object_add_by_name( chart, "Plot", GOG_OBJECT(plot) );
series = gog_plot_new_series( plot );
- labelData = go_data_vector_str_new( labels, datasize );
+ labelData = go_data_vector_str_new( (char const * const *)labels, datasize );
gog_series_set_dim( series, 0, labelData, NULL );
go_data_emit_changed (GO_DATA (labelData));
@@ -371,7 +373,7 @@
static int
handle_scatter(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d)
{
- GogObject *graph, *chart, *legend;
+ GogObject *graph, *chart;
GogPlot *plot;
GogSeries *series;
GOData *sliceData;
More information about the gnucash-changes
mailing list