Commit a9a20284 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Suppress some warnings and make non-bonobo build clean.

2000-09-24  Jody Goldberg <jgoldberg@home.com>

	* src/normal-args.c : Suppress warning.

	* src/functions/fn*.c : Add a prototype of the _init routine to
	  suppress warning.

	* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
	  implemented.

	* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
parent 8f89ad4e
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com> 2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject * src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com> 2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject * src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com> 2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject * src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com> 2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject * src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com> 2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject * src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com> 2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject * src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com> 2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject * src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
...@@ -1330,6 +1330,7 @@ gnumeric_getpivotdata (FunctionEvalInfo *ei, Value **argv) ...@@ -1330,6 +1330,7 @@ gnumeric_getpivotdata (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void database_functions_init(void);
void void
database_functions_init(void) database_functions_init(void)
{ {
......
...@@ -120,7 +120,7 @@ static char *help_datedif = { ...@@ -120,7 +120,7 @@ static char *help_datedif = {
"@SEEALSO=DATE") "@SEEALSO=DATE")
}; };
int static int
datedif_opt_ym (GDate *gdate1, GDate *gdate2) datedif_opt_ym (GDate *gdate1, GDate *gdate2)
{ {
g_assert (g_date_valid (gdate1)); g_assert (g_date_valid (gdate1));
...@@ -129,7 +129,7 @@ datedif_opt_ym (GDate *gdate1, GDate *gdate2) ...@@ -129,7 +129,7 @@ datedif_opt_ym (GDate *gdate1, GDate *gdate2)
return datetime_g_months_between (gdate1, gdate2) % 12; return datetime_g_months_between (gdate1, gdate2) % 12;
} }
int static int
datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat) datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
{ {
int day; int day;
...@@ -160,7 +160,7 @@ datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat) ...@@ -160,7 +160,7 @@ datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
return datetime_g_days_between (gdate1, gdate2); return datetime_g_days_between (gdate1, gdate2);
} }
int static int
datedif_opt_md (GDate *gdate1, GDate *gdate2, int excel_compat) datedif_opt_md (GDate *gdate1, GDate *gdate2, int excel_compat)
{ {
int day; int day;
...@@ -968,6 +968,7 @@ gnumeric_networkdays (FunctionEvalInfo *ei, Value **argv) ...@@ -968,6 +968,7 @@ gnumeric_networkdays (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void date_functions_init(void);
void void
date_functions_init(void) date_functions_init(void)
{ {
......
...@@ -1847,6 +1847,7 @@ gnumeric_gestep (FunctionEvalInfo *ei, Value **argv) ...@@ -1847,6 +1847,7 @@ gnumeric_gestep (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void eng_functions_init (void);
void void
eng_functions_init (void) eng_functions_init (void)
{ {
......
...@@ -2908,6 +2908,7 @@ gnumeric_vdb (FunctionEvalInfo *ei, Value **argv) ...@@ -2908,6 +2908,7 @@ gnumeric_vdb (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void finance_functions_init (void);
void void
finance_functions_init (void) finance_functions_init (void)
{ {
......
...@@ -851,6 +851,7 @@ gnumeric_type (FunctionEvalInfo *ei, GList *expr_node_list) ...@@ -851,6 +851,7 @@ gnumeric_type (FunctionEvalInfo *ei, GList *expr_node_list)
/***************************************************************************/ /***************************************************************************/
void information_functions_init (void);
void void
information_functions_init (void) information_functions_init (void)
{ {
...@@ -894,6 +895,4 @@ information_functions_init (void) ...@@ -894,6 +895,4 @@ information_functions_init (void)
&help_na, gnumeric_na); &help_na, gnumeric_na);
function_add_nodes (cat, "type", NULL, "value", function_add_nodes (cat, "type", NULL, "value",
&help_type, gnumeric_type); &help_type, gnumeric_type);
}; }
...@@ -270,6 +270,7 @@ gnumeric_false (FunctionEvalInfo *ei, Value **args) ...@@ -270,6 +270,7 @@ gnumeric_false (FunctionEvalInfo *ei, Value **args)
/***************************************************************************/ /***************************************************************************/
void logical_functions_init (void);
void void
logical_functions_init (void) logical_functions_init (void)
{ {
......
...@@ -1126,6 +1126,7 @@ gnumeric_transpose (FunctionEvalInfo *ei, Value **argv) ...@@ -1126,6 +1126,7 @@ gnumeric_transpose (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void lookup_functions_init (void);
void void
lookup_functions_init (void) lookup_functions_init (void)
{ {
......
...@@ -3348,6 +3348,7 @@ gnumeric_sumproduct (FunctionEvalInfo *ei, GList *args) ...@@ -3348,6 +3348,7 @@ gnumeric_sumproduct (FunctionEvalInfo *ei, GList *args)
/***************************************************************************/ /***************************************************************************/
void math_functions_init (void);
void void
math_functions_init (void) math_functions_init (void)
{ {
......
...@@ -4700,6 +4700,7 @@ gnumeric_slope (FunctionEvalInfo *ei, Value **argv) ...@@ -4700,6 +4700,7 @@ gnumeric_slope (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void stat_functions_init (void);
void void
stat_functions_init (void) stat_functions_init (void)
{ {
......
...@@ -1329,6 +1329,7 @@ match_again: ...@@ -1329,6 +1329,7 @@ match_again:
/***************************************************************************/ /***************************************************************************/
void string_functions_init (void);
void void
string_functions_init (void) string_functions_init (void)
{ {
......
...@@ -877,11 +877,13 @@ cell_get_dependencies (const Cell *cell) ...@@ -877,11 +877,13 @@ cell_get_dependencies (const Cell *cell)
return deps; return deps;
} }
#if 0
void void
cell_recalc_dependencies (const Cell *cell) cell_recalc_dependencies (const Cell *cell)
{ {
/* FIXME is there a way to write this without replicating alot of code ? */ /* FIXME is there a way to write this without replicating alot of code ? */
} }
#endif
static Dependent * static Dependent *
pick_next_dependent_from_queue (Workbook *wb) pick_next_dependent_from_queue (Workbook *wb)
......
...@@ -877,11 +877,13 @@ cell_get_dependencies (const Cell *cell) ...@@ -877,11 +877,13 @@ cell_get_dependencies (const Cell *cell)
return deps; return deps;
} }
#if 0
void void
cell_recalc_dependencies (const Cell *cell) cell_recalc_dependencies (const Cell *cell)
{ {
/* FIXME is there a way to write this without replicating alot of code ? */ /* FIXME is there a way to write this without replicating alot of code ? */
} }
#endif
static Dependent * static Dependent *
pick_next_dependent_from_queue (Workbook *wb) pick_next_dependent_from_queue (Workbook *wb)
......
...@@ -1330,6 +1330,7 @@ gnumeric_getpivotdata (FunctionEvalInfo *ei, Value **argv) ...@@ -1330,6 +1330,7 @@ gnumeric_getpivotdata (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void database_functions_init(void);
void void
database_functions_init(void) database_functions_init(void)
{ {
......
...@@ -120,7 +120,7 @@ static char *help_datedif = { ...@@ -120,7 +120,7 @@ static char *help_datedif = {
"@SEEALSO=DATE") "@SEEALSO=DATE")
}; };
int static int
datedif_opt_ym (GDate *gdate1, GDate *gdate2) datedif_opt_ym (GDate *gdate1, GDate *gdate2)
{ {
g_assert (g_date_valid (gdate1)); g_assert (g_date_valid (gdate1));
...@@ -129,7 +129,7 @@ datedif_opt_ym (GDate *gdate1, GDate *gdate2) ...@@ -129,7 +129,7 @@ datedif_opt_ym (GDate *gdate1, GDate *gdate2)
return datetime_g_months_between (gdate1, gdate2) % 12; return datetime_g_months_between (gdate1, gdate2) % 12;
} }
int static int
datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat) datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
{ {
int day; int day;
...@@ -160,7 +160,7 @@ datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat) ...@@ -160,7 +160,7 @@ datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
return datetime_g_days_between (gdate1, gdate2); return datetime_g_days_between (gdate1, gdate2);
} }
int static int
datedif_opt_md (GDate *gdate1, GDate *gdate2, int excel_compat) datedif_opt_md (GDate *gdate1, GDate *gdate2, int excel_compat)
{ {
int day; int day;
...@@ -968,6 +968,7 @@ gnumeric_networkdays (FunctionEvalInfo *ei, Value **argv) ...@@ -968,6 +968,7 @@ gnumeric_networkdays (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void date_functions_init(void);
void void
date_functions_init(void) date_functions_init(void)
{ {
......
...@@ -1847,6 +1847,7 @@ gnumeric_gestep (FunctionEvalInfo *ei, Value **argv) ...@@ -1847,6 +1847,7 @@ gnumeric_gestep (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void eng_functions_init (void);
void void
eng_functions_init (void) eng_functions_init (void)
{ {
......
...@@ -2908,6 +2908,7 @@ gnumeric_vdb (FunctionEvalInfo *ei, Value **argv) ...@@ -2908,6 +2908,7 @@ gnumeric_vdb (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void finance_functions_init (void);
void void
finance_functions_init (void) finance_functions_init (void)
{ {
......
...@@ -851,6 +851,7 @@ gnumeric_type (FunctionEvalInfo *ei, GList *expr_node_list) ...@@ -851,6 +851,7 @@ gnumeric_type (FunctionEvalInfo *ei, GList *expr_node_list)
/***************************************************************************/ /***************************************************************************/
void information_functions_init (void);
void void
information_functions_init (void) information_functions_init (void)
{ {
...@@ -894,6 +895,4 @@ information_functions_init (void) ...@@ -894,6 +895,4 @@ information_functions_init (void)
&help_na, gnumeric_na); &help_na, gnumeric_na);
function_add_nodes (cat, "type", NULL, "value", function_add_nodes (cat, "type", NULL, "value",
&help_type, gnumeric_type); &help_type, gnumeric_type);
}; }
...@@ -270,6 +270,7 @@ gnumeric_false (FunctionEvalInfo *ei, Value **args) ...@@ -270,6 +270,7 @@ gnumeric_false (FunctionEvalInfo *ei, Value **args)
/***************************************************************************/ /***************************************************************************/
void logical_functions_init (void);
void void
logical_functions_init (void) logical_functions_init (void)
{ {
......
...@@ -1126,6 +1126,7 @@ gnumeric_transpose (FunctionEvalInfo *ei, Value **argv) ...@@ -1126,6 +1126,7 @@ gnumeric_transpose (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void lookup_functions_init (void);
void void
lookup_functions_init (void) lookup_functions_init (void)
{ {
......
...@@ -3348,6 +3348,7 @@ gnumeric_sumproduct (FunctionEvalInfo *ei, GList *args) ...@@ -3348,6 +3348,7 @@ gnumeric_sumproduct (FunctionEvalInfo *ei, GList *args)
/***************************************************************************/ /***************************************************************************/
void math_functions_init (void);
void void
math_functions_init (void) math_functions_init (void)
{ {
......
...@@ -131,6 +131,7 @@ gnumeric_version (FunctionEvalInfo *ei, Value *argv []) ...@@ -131,6 +131,7 @@ gnumeric_version (FunctionEvalInfo *ei, Value *argv [])
* *
* WARNING * WARNING * WARNING * WARNING * WARNING * WARNING
*/ */
void sheet_functions_init (void);
void void
sheet_functions_init (void) sheet_functions_init (void)
{ {
......
...@@ -4700,6 +4700,7 @@ gnumeric_slope (FunctionEvalInfo *ei, Value **argv) ...@@ -4700,6 +4700,7 @@ gnumeric_slope (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/ /***************************************************************************/
void stat_functions_init (void);
void void
stat_functions_init (void) stat_functions_init (void)
{ {
......
...@@ -1329,6 +1329,7 @@ match_again: ...@@ -1329,6 +1329,7 @@ match_again:
/***************************************************************************/ /***************************************************************************/
void string_functions_init (void);
void void
string_functions_init (void) string_functions_init (void)
{ {
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "gnumeric.h" #include "gnumeric.h"
#include "gnumeric-sheet.h" #include "gnumeric-sheet.h"
#include "gnumeric-util.h" #include "gnumeric-util.h"
#include "sheet-object-container.h"
#include "color.h" #include "color.h"
#include "selection.h" #include "selection.h"
#include "parse-util.h" #include "parse-util.h"
...@@ -23,6 +22,10 @@ ...@@ -23,6 +22,10 @@
#include "workbook-edit.h" #include "workbook-edit.h"
#include "workbook.h" #include "workbook.h"
#include "commands.h" #include "commands.h"
#ifdef ENABLE_BONOBO
# include "sheet-object-container.h"
#endif
#include <gal/widgets/e-cursors.h> #include <gal/widgets/e-cursors.h>
static GnomeCanvasClass *sheet_parent_class; static GnomeCanvasClass *sheet_parent_class;
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "gnumeric.h" #include "gnumeric.h"
#include "gnumeric-sheet.h" #include "gnumeric-sheet.h"
#include "gnumeric-util.h" #include "gnumeric-util.h"
#include "sheet-object-container.h"
#include "color.h" #include "color.h"
#include "selection.h" #include "selection.h"
#include "parse-util.h" #include "parse-util.h"
...@@ -23,6 +22,10 @@ ...@@ -23,6 +22,10 @@
#include "workbook-edit.h" #include "workbook-edit.h"
#include "workbook.h" #include "workbook.h"
#include "commands.h" #include "commands.h"
#ifdef ENABLE_BONOBO
# include "sheet-object-container.h"
#endif
#include <gal/widgets/e-cursors.h> #include <gal/widgets/e-cursors.h>
static GnomeCanvasClass *sheet_parent_class; static GnomeCanvasClass *sheet_parent_class;
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <config.h> #include <config.h>
#include <gnome.h> #include <gnome.h>
#include "gnumeric.h"