[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: gerbv fix for gcc 4.0



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