Fix compilation warnings.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12986 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2006-01-27 05:03:51 +00:00
parent 579ee13ac5
commit f30362eaa3
6 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
2006-01-26 David Hampton <hampton@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@ihtfp.com>
* configure.in: fail if we find libgsf >= 1.12.2 but not libgsf-gnome.

View File

@@ -422,9 +422,9 @@ gnc_main_gui_init (void)
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(" ");

View File

@@ -325,7 +325,7 @@ show_report(gpointer key, gpointer val, gpointer data)
}
void
gnc_reports_show_all()
gnc_reports_show_all(void)
{
GHashTable *reports = gnc_reports_get_global();

View File

@@ -45,5 +45,5 @@ void gnc_report_raise_editor(SCM report);
// module[/plugin]-init
void gnc_report_init (void);
void gnc_reports_show_all();
void gnc_reports_show_all(void);
#endif

View File

@@ -81,14 +81,14 @@ yes_remove(gpointer key, gpointer val, gpointer data)
}
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;

View File

@@ -42,7 +42,7 @@ SCM gnc_report_find(gint id);
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