Commit 6f2e4d53 authored by Morten Welinder's avatar Morten Welinder

Fix problems found by sparse.

parent 662c61b5
2004-07-27 Morten Welinder <terra@gnome.org>
* src/gnumeric-gconf.c (gnm_conf_init_printer_decoration_font): (void).
* src/application.c (cb_flag_windows_changed): Ditto.
2004-07-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
* configure.in: use AM_PROG_LEX rather than AC_PROG_LEX
......
2004-07-27 Morten Welinder <terra@gnome.org>
* src/gnumeric-gconf.c (gnm_conf_init_printer_decoration_font): (void).
* src/application.c (cb_flag_windows_changed): Ditto.
2004-07-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
* configure.in: use AM_PROG_LEX rather than AC_PROG_LEX
......
......@@ -812,7 +812,7 @@ GSF_CLASS (GnmApp, gnm_app,
static gint windows_update_timer = -1;
static gboolean
cb_flag_windows_changed ()
cb_flag_windows_changed (void)
{
g_signal_emit (G_OBJECT (app), signals [WINDOW_LIST_CHANGED], 0);
windows_update_timer = -1;
......
2004-07-27 Morten Welinder <terra@gnome.org>
* dialog-search.c (make_matches_table): Don't use NULL
terminatation when we know array length.
2004-07-19 Jody Goldberg <jody@gnome.org>
* Release 1.3.1
......
......@@ -56,26 +56,26 @@ static const char *error_group[] = {
"error_query",
"error_error",
"error_string",
0
NULL
};
static const char *search_type_group[] = {
"search_type_text",
"search_type_regexp",
0
NULL
};
static const char *scope_group[] = {
"scope_workbook",
"scope_sheet",
"scope_range",
0
NULL
};
static const char *direction_group[] = {
"row_major",
"column_major",
0
NULL
};
static gboolean
......
......@@ -81,20 +81,20 @@ typedef struct {
static const char *search_type_group[] = {
"search_type_text",
"search_type_regexp",
0
NULL
};
static const char *scope_group[] = {
"scope_workbook",
"scope_sheet",
"scope_range",
0
NULL
};
static const char *direction_group[] = {
"row_major",
"column_major",
0
NULL
};
/* ------------------------------------------------------------------------- */
......@@ -399,8 +399,7 @@ static const struct {
{ N_("Sheet"), "text" },
{ N_("Cell"), "text" },
{ N_("Type"), "text" },
{ N_("Content"), "text" },
{ 0, 0 }
{ N_("Content"), "text" }
};
static GtkTreeView *
......@@ -415,7 +414,7 @@ make_matches_table (GtkTreeModel *model)
g_object_set (tree_view, "fixed_height_mode", TRUE, NULL);
#endif
for (i = 0; columns[i].title; i++) {
for (i = 0; i < G_N_ELEMENTS (columns); i++) {
GtkCellRenderer *cell = gtk_cell_renderer_text_new ();
GtkTreeViewColumn *column =
gtk_tree_view_column_new_with_attributes (_(columns[i].title), cell,
......
......@@ -55,7 +55,7 @@ static char const *shuffle_by[] = {
"shuffle_cols",
"shuffle_rows",
"shuffle_area",
0
NULL
};
/**
......
......@@ -120,14 +120,14 @@ static const char *problem_type_group[] = {
"min_button",
"max_button",
"equal_to_button",
0
NULL
};
static const char *model_type_group[] = {
"lp_model_button",
"qp_model_button",
"nlp_model_button",
0
NULL
};
static GList *lp_alg_name_list = NULL;
......
......@@ -70,7 +70,7 @@ static GnumericPopupMenuElement const popup_elements[] = {
{ N_("Delete and Merge _Right"), GTK_STOCK_REMOVE,
0, 1 << CONTEXT_STF_IMPORT_MERGE_RIGHT, CONTEXT_STF_IMPORT_MERGE_RIGHT },
{ "", NULL, 0, 0, 0 },
{ N_("_Split"), 0,
{ N_("_Split"), NULL,
0, 1 << CONTEXT_STF_IMPORT_SPLIT, CONTEXT_STF_IMPORT_SPLIT },
{ "", NULL, 0, 0, 0 },
{ N_("_Widen"), GTK_STOCK_GO_FORWARD,
......
......@@ -78,7 +78,7 @@ typedef struct {
static const char *mode_group[] = {
"mode_visual",
"mode_coordinate",
0
NULL
};
/* ------------------------------------------------------------------------- */
......
......@@ -500,7 +500,7 @@ go_conf_add_monitor (char const *key,
#endif
static void
gnm_conf_init_printer_decoration_font ()
gnm_conf_init_printer_decoration_font (void)
{
gchar *name;
if (prefs.printer_decoration_font == NULL)
......
......@@ -172,7 +172,7 @@ const char *dao_group[] = {
"newworkbook-button",
"outputrange-button",
"inplace-button",
0
NULL
};
static void
......
......@@ -151,7 +151,7 @@ lazy_list_iter_children (GtkTreeModel *tree_model,
*/
iter->stamp = ll->stamp;
iter->user_data = 0;
iter->user_data = NULL;
return ll->rows > 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment