[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: gerbv fix for gcc 4.0
- To: geda-user@xxxxxxxx
- Subject: gEDA-user: gerbv fix for gcc 4.0
- From: "Mark Rages" <markrages@xxxxxxxxx>
- Date: Mon, 3 Apr 2006 23:21:58 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: geda-user-outgoing@seul.org
- Delivered-to: geda-user@seul.org
- Delivery-date: Tue, 04 Apr 2006 00:22:55 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=U56r5C6my23G3MRP13G8HPXr8svVXQ8MP3MLOo/OcVbN68MFhJ8vBWEpZupxdL/41fzDDqXEg/9hooB4neTej0YVinaCyX80jf59SgK3xKSN5tNP2dPrlI263seMSet5kuGC33os5U4YD7EvUn+PaL48Fthg6HhtgPFpcZIKUhM=
- Reply-to: geda-user@xxxxxxxx
- Sender: owner-geda-user@xxxxxxxx
I downloaded the gerbv tarball off the gEDA homepage, but it didn't
compile on my FC4 system.
The error is "invalid lvalue in assignment".
This is the fix. It is already in the gerbv CVS.
--- drill.c.orig 2005-01-09 15:51:57.000000000 -0600
+++ drill.c 2006-04-03 23:17:20.000000000 -0500
@@ -217,8 +217,8 @@
/* KLUDGE. This function isn't allowed to return anything
but inches */
if(state->unit == MM) {
- (double)curr_net->start_x /= 25.4;
- (double)curr_net->start_y /= 25.4;
+ curr_net->start_x /= 25.4;
+ curr_net->start_y /= 25.4;
/* KLUDGE. All images, regardless of input format,
are returned in INCH format */
curr_net->unit = INCH;
--
You think that it is a secret, but it never has been one.
- fortune cookie