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

Re: gEDA-user: Problems with PCB



> Does this imply that all kinds of bad things might be happening, or
> is the compiler smart enough to disable these optimisations when it
> gives the warning?

Subtle bad things may happen.

> I guess it'd have to be specific cases where the old values might be
> used, but is there a way to build PCB without the risk?

Fix the source :-)

and there's an option... -fno-strict-aliasing ...but I don't know if
it stops the warning, just the optimization.  Really new gcc's have
-Wno-strict-aliasing.

> ((struct foo *)(void *)x)->bar = 5; ?

int foo(void *vx)
{
  struct bar *x = (struct bar *)vx;
  ...
}


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user