Joseph Koshy <[EMAIL PROTECTED]> writes: > Maxime Henrion <[EMAIL PROTECTED]> writes: > > Log: > > Cast the pointer to void * before casting it back to struct type * in > > STAILQ_LAST. This quiets a warning from GCC about increased required > > alignment for the cast. > Doesn't this trade a compile time warning for a runtime fault on those > architectures where alignment matters?
Unless the stailq head has been corrupted, we know that the result of the expression is correctly aligned for a pointer to struct type. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"
