mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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.
|
||||
|
||||
@@ -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(" ");
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user