[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: o_box_basic.c
User: peterb
Date: 07/04/22 03:30:20
Modified: . o_box_basic.c
Log:
Fix some unused variable warnings in libgeda.
In a recent patch libgd was disabled by default (i.e.
HAS_LIBGD was unset by default). This exposed some
variable declarations which should have been #ifdefed
out, but weren't. Although most were later cleared up,
some were missed.
Revision Changes Path
1.29 +5 -2 eda/geda/gaf/libgeda/src/o_box_basic.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: o_box_basic.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_box_basic.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- o_box_basic.c 17 Apr 2007 20:19:21 -0000 1.28
+++ o_box_basic.c 22 Apr 2007 07:30:20 -0000 1.29
@@ -1521,8 +1521,10 @@
void o_box_image_write(TOPLEVEL *w_current, OBJECT *o_current,
int origin_x, int origin_y, int color_mode)
{
- int color;
+#ifdef HAS_LIBGD
int s_upper_x, s_upper_y, s_lower_x, s_lower_y;
+#endif
+ int color;
if (o_current == NULL) {
printf("got null in o_box_image_write\n");
@@ -1554,5 +1556,6 @@
s_upper_x, s_upper_y,
s_lower_x, s_lower_y,
color);
-#endif
+
+#endif /* HAS_GD */
}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs