[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: globals.c
User: ahvezda
Date: 07/02/10 13:33:15
Modified: . globals.c i_basic.c s_toplevel.c s_visibility.c
x_gtksheet.c x_window.c
Log:
Fixed a few compiler warnings in gattrib. Removed quit_func everywhere
since it is completely unused.
Revision Changes Path
1.5 +0 -1 eda/geda/gaf/gattrib/src/globals.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: globals.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/globals.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- globals.c 27 Nov 2005 00:15:00 -0000 1.4
+++ globals.c 10 Feb 2007 18:33:15 -0000 1.5
@@ -61,7 +61,6 @@
void (*pin_draw_func)() = NULL;
void (*select_func)() = s_toplevel_select_object;
void (*x_log_update_func)() = NULL;
-void (*quit_func)() = gattrib_quit;
void (*variable_set_func)() = i_vars_set;
int (*load_newer_backup_func)() = NULL;
1.3 +2 -0 eda/geda/gaf/gattrib/src/i_basic.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: i_basic.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/i_basic.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- i_basic.c 5 Feb 2005 16:03:53 -0000 1.2
+++ i_basic.c 10 Feb 2007 18:33:15 -0000 1.3
@@ -45,6 +45,7 @@
/* ------------------------------------------------------------- *
*
* ------------------------------------------------------------- */
+#if 0 /* not used, but leaving it here in case we need it later */
static void i_update_status(TOPLEVEL * w_current, const char *string)
{
if (!w_current->status_label) {
@@ -57,6 +58,7 @@
gtk_label_set(GTK_LABEL(w_current->status_label), (char *) string);
}
}
+#endif
/* ------------------------------------------------------------- *
1.23 +3 -3 eda/geda/gaf/gattrib/src/s_toplevel.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: s_toplevel.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/s_toplevel.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- s_toplevel.c 30 Sep 2006 13:44:56 -0000 1.22
+++ s_toplevel.c 10 Feb 2007 18:33:15 -0000 1.23
@@ -1,4 +1,4 @@
-/* $Id: s_toplevel.c,v 1.22 2006/09/30 13:44:56 sdb Exp $ */
+/* $Id: s_toplevel.c,v 1.23 2007/02/10 18:33:15 ahvezda Exp $ */
/* gEDA - GPL Electronic Design Automation
* gattrib -- gEDA component and net attribute manipulation using spreadsheet.
@@ -721,8 +721,8 @@
ATTRIB *a_current;
int count = 0; /* This is to fake out a fcn called later */
gint row, col;
- gint visibility;
- gint show_name_value;
+ gint visibility = 0;
+ gint show_name_value = 0;
#if DEBUG
printf("----- Entering s_toplevel_update_component_attribs_in_toplevel.\n");
1.4 +1 -1 eda/geda/gaf/gattrib/src/s_visibility.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: s_visibility.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/s_visibility.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- s_visibility.c 12 Aug 2006 18:58:48 -0000 1.3
+++ s_visibility.c 10 Feb 2007 18:33:15 -0000 1.4
@@ -339,7 +339,7 @@
void s_visibility_set_cell(gint cur_page, gint row, gint col,
gint visibility,
gint show_name_value) {
- TABLE **local_table;
+ TABLE **local_table = NULL;
#ifdef DEBUG
printf("In s_visibility_set_cell, setting row = %d, col = %d.\n",
1.13 +1 -1 eda/geda/gaf/gattrib/src/x_gtksheet.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_gtksheet.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/x_gtksheet.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- x_gtksheet.c 16 Sep 2006 11:37:03 -0000 1.12
+++ x_gtksheet.c 10 Feb 2007 18:33:15 -0000 1.13
@@ -651,7 +651,7 @@
{
gchar *text;
GtkSheet *sheet;
- GtkWidget *sheet_entry;
+ GtkWidget *sheet_entry = NULL;
gint cur_page;
#ifdef DEBUG
1.13 +3 -3 eda/geda/gaf/gattrib/src/x_window.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_window.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/x_window.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- x_window.c 16 Sep 2006 11:37:03 -0000 1.12
+++ x_window.c 10 Feb 2007 18:33:15 -0000 1.13
@@ -248,7 +248,7 @@
error_string = g_strconcat(error_string,
"Do you have refdeses on your components? \n", NULL);
error_string = g_strconcat(error_string,
- "Exiting. . . .\n");
+ "Exiting. . . .\n", NULL);
fprintf(stderr, "%s", error_string);
x_dialog_exit_announcement(error_string, -1);
g_free(error_string);
@@ -259,7 +259,7 @@
error_string = g_strdup("\n\nNo configurable component attributes found in entire design! ");
error_string = g_strconcat(error_string,
"Please attach at least some attributes before running gattrib.\n", NULL);
- error_string = g_strconcat(error_string, "Exiting. . . .\n");
+ error_string = g_strconcat(error_string, "Exiting. . . .\n", NULL);
fprintf(stderr, "%s", error_string);
x_dialog_exit_announcement(error_string, -2);
g_free(error_string);
@@ -270,7 +270,7 @@
if (sheet_head->pin_count == 0) {
error_string = g_strdup("\n\nNo pins found on any components! ");
error_string = g_strconcat(error_string, "Please check your design.\n", NULL);
- error_string = g_strconcat(error_string, "Exiting. . . .\n");
+ error_string = g_strconcat(error_string, "Exiting. . . .\n", NULL);
fprintf(stderr, "%s", error_string);
x_dialog_exit_announcement(error_string, -3);
g_free(error_string);
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs