"cast increases required alignment of target type"



Hi,

I am porting some code across hardware platform.

I got the following warning using the cygming compiler

warning: cast increases required alignment of target type

I believe this can, say, cast a byte-aligned pointer to a
integer-aligned pointer, which can break for stricter processors.

Does anyone have experience in casting around byte-alignments and can
give me some suggestion/pointer?

Thanks

.



Relevant Pages