[Gnucash-changes] r12986 - gnucash/trunk - Fix compilation warnings.
David Hampton
hampton at cvs.gnucash.org
Fri Jan 27 00:03:53 EST 2006
Author: hampton
Date: 2006-01-27 00:03:51 -0500 (Fri, 27 Jan 2006)
New Revision: 12986
Trac: http://svn.gnucash.org/trac/changeset/12986
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome/top-level.c
gnucash/trunk/src/report/report-gnome/window-report.c
gnucash/trunk/src/report/report-gnome/window-report.h
gnucash/trunk/src/report/report-system/gnc-report.c
gnucash/trunk/src/report/report-system/gnc-report.h
Log:
Fix compilation warnings.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-01-27 04:38:47 UTC (rev 12985)
+++ gnucash/trunk/ChangeLog 2006-01-27 05:03:51 UTC (rev 12986)
@@ -1,3 +1,9 @@
+2006-01-26 David Hampton <hampton at employees.org>
+
+ * src/report/report-system/gnc-report.[ch]:
+ * src/report/report-gnome/window-report.[ch]:
+ * src/gnome/top-level.c: Fix compilation warnings.
+
2006-01-26 Derek Atkins <derek at ihtfp.com>
* configure.in: fail if we find libgsf >= 1.12.2 but not libgsf-gnome.
Modified: gnucash/trunk/src/gnome/top-level.c
===================================================================
--- gnucash/trunk/src/gnome/top-level.c 2006-01-27 04:38:47 UTC (rev 12985)
+++ gnucash/trunk/src/gnome/top-level.c 2006-01-27 05:03:51 UTC (rev 12986)
@@ -422,9 +422,9 @@
gnc_save_all_state, NULL);
/* CAS: I'm not really sure why we remove before adding. */
- gnc_hook_remove_dangler(HOOK_BOOK_CLOSED, gnc_reports_flush_global);
+ gnc_hook_remove_dangler(HOOK_BOOK_CLOSED, (GFunc)gnc_reports_flush_global);
gnc_hook_add_dangler(HOOK_BOOK_CLOSED,
- gnc_reports_flush_global, NULL);
+ (GFunc)gnc_reports_flush_global, NULL);
LEAVE(" ");
Modified: gnucash/trunk/src/report/report-gnome/window-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/window-report.c 2006-01-27 04:38:47 UTC (rev 12985)
+++ gnucash/trunk/src/report/report-gnome/window-report.c 2006-01-27 05:03:51 UTC (rev 12986)
@@ -325,7 +325,7 @@
}
void
-gnc_reports_show_all()
+gnc_reports_show_all(void)
{
GHashTable *reports = gnc_reports_get_global();
Modified: gnucash/trunk/src/report/report-gnome/window-report.h
===================================================================
--- gnucash/trunk/src/report/report-gnome/window-report.h 2006-01-27 04:38:47 UTC (rev 12985)
+++ gnucash/trunk/src/report/report-gnome/window-report.h 2006-01-27 05:03:51 UTC (rev 12986)
@@ -45,5 +45,5 @@
// module[/plugin]-init
void gnc_report_init (void);
-void gnc_reports_show_all();
+void gnc_reports_show_all(void);
#endif
Modified: gnucash/trunk/src/report/report-system/gnc-report.c
===================================================================
--- gnucash/trunk/src/report/report-system/gnc-report.c 2006-01-27 04:38:47 UTC (rev 12985)
+++ gnucash/trunk/src/report/report-system/gnc-report.c 2006-01-27 05:03:51 UTC (rev 12986)
@@ -81,14 +81,14 @@
}
void
-gnc_reports_flush_global()
+gnc_reports_flush_global(void)
{
if (reports)
g_hash_table_foreach_remove(reports, yes_remove, NULL);
}
GHashTable *
-gnc_reports_get_global()
+gnc_reports_get_global(void)
{
gnc_report_init_table();
return reports;
Modified: gnucash/trunk/src/report/report-system/gnc-report.h
===================================================================
--- gnucash/trunk/src/report/report-system/gnc-report.h 2006-01-27 04:38:47 UTC (rev 12985)
+++ gnucash/trunk/src/report/report-system/gnc-report.h 2006-01-27 05:03:51 UTC (rev 12986)
@@ -42,7 +42,7 @@
void gnc_report_remove_by_id(gint id);
void gnc_report_add(gint id, SCM report);
-void gnc_reports_flush_global();
-GHashTable *gnc_reports_get_global();
+void gnc_reports_flush_global(void);
+GHashTable *gnc_reports_get_global(void);
#endif
More information about the gnucash-changes
mailing list