Ralf Corsepius wrote:
Was will mir diese Warnung sagen?
http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html -Wstrict-aliasing This option is only active when -fstrict-aliasing is active. It warns about code which might break the strict aliasing rules that the compiler is using for optimization. http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html -fstrict-aliasing (...) In particular, an object of one type is assumed never to reside at the same address as an object of a different type, unless the types are almost the same. For example, an unsigned int can alias an int, but not a void* or a double. drunter sind noch Beispiele. Wobei ich da schon ausklinke.
Wie bedeutsam ist sie?
Hm, nach Betrachtung von http://sources.redhat.com/ml/libc-hacker/2002-11/msg00046.html und ff. sieht das ganze schon nach "Arbeit noetig" aus. -- Have fun, Peter