[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: g_hook.c
User: cnieves
Date: 06/12/23 10:54:50
Modified: . g_hook.c
Log:
* src/g_hook.c (g_add_component):
Changed the end of this function to avoid the "Statement not reached"
compiler warning. Thanks to Dan McMahill for reporting this.
Revision Changes Path
1.17 +27 -28 eda/geda/gaf/gschem/src/g_hook.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: g_hook.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/g_hook.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- g_hook.c 22 Dec 2006 19:21:49 -0000 1.16
+++ g_hook.c 23 Dec 2006 15:54:49 -0000 1.17
@@ -664,7 +664,9 @@
s_log_message ("add-component-at-xy: Component with name [%s] not found.\n",
comp_name);
return SCM_BOOL_F;
- } else {
+ }
+
+ g_assert(clibs != NULL);
if (g_slist_next (clibs)) {
s_log_message ("add-component-at-xy: More than one component found with name [%s]\n",
comp_name);
@@ -682,7 +684,7 @@
clib, comp_name,
selectable, FALSE);
-/*
+ /*
* For now, do not redraw the newly added complex, since this might cause
* flicker if you are zoom/panning right after this function executes
*/
@@ -693,9 +695,6 @@
#endif
return SCM_BOOL_T;
- }
-
- return SCM_BOOL_F;
}
/*! \brief Return the objects in a page.
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs