"D. Richard Hipp" <d...@hwaci.com> writes:

> For proof, could you please indicate where, exactly, we  are violating C
> aliasing rules?

See the patch.  You are storing a value of type void* in an object of
type Mem*.  This is a classical example of an obvious aliasing
violation.
 
> And what compiler are you using that is sensitive to these violations
> yet generates no warnings?

It's the very nature of undefined behaviour that it does not require a
warning.  Welcome to the world of C.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to