On 1 October 2011 09:24, Florian Klämpfl <[email protected]> wrote: > Am 30.09.2011 11:44, schrieb Henry Vermaak: >> >> Hi list >> >> Thinking more about the alignment problems on arm and elsewhere, I was >> wondering how hard it would be to implement something like gcc's >> -Wcast-align. Here's a description from the man page: >> >> Warn whenever a pointer is cast such that the required alignment of the >> target is increased. For example, warn if a "char *" is cast to an "int >> *" on machines where integers can only be accessed at two- or four-byte >> boundaries. > > The problem with such warnings is that one cannot get easily rid of them. > Maybe a hint would be more suitable.
Yes, probably, you would want to switch this off most of the time, I guess. Is this hard to implement? Henry _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
